* some improvements
diff --git a/plugins/org.eclipse.dltk.python.ui/src/org/eclipse/dltk/python/internal/ui/text/PythonSourceViewerConfiguration.java b/plugins/org.eclipse.dltk.python.ui/src/org/eclipse/dltk/python/internal/ui/text/PythonSourceViewerConfiguration.java index 5b8bbc3..f096eec 100644 --- a/plugins/org.eclipse.dltk.python.ui/src/org/eclipse/dltk/python/internal/ui/text/PythonSourceViewerConfiguration.java +++ b/plugins/org.eclipse.dltk.python.ui/src/org/eclipse/dltk/python/internal/ui/text/PythonSourceViewerConfiguration.java
@@ -24,7 +24,6 @@ import org.eclipse.jface.preference.IPreferenceStore; import org.eclipse.jface.text.IAutoEditStrategy; import org.eclipse.jface.text.IDocument; -import org.eclipse.jface.text.IInformationControlCreator; import org.eclipse.jface.text.contentassist.ContentAssistant; import org.eclipse.jface.text.information.IInformationPresenter; import org.eclipse.jface.text.information.IInformationProvider; @@ -60,8 +59,7 @@ public String[] getIndentPrefixes(ISourceViewer sourceViewer, String contentType) { - // XXX: what happens here?.. why " " ? - return new String[] { "\t", " " }; + return new String[] { "\t", " " }; } /* @@ -168,18 +166,6 @@ || fStringScanner.affectsBehavior(event); } - public IInformationPresenter getHierarchyPresenter( - ScriptSourceViewer viewer, boolean b) { - // TODO Auto-generated method stub - return null; - } - - public IInformationPresenter getOutlinePresenter(ScriptSourceViewer viewer, - boolean b) { - // TODO Auto-generated method stub - return null; - } - /* * (non-Javadoc) * @@ -194,12 +180,6 @@ fPreferenceStore, partitioning) }; } - protected IInformationControlCreator getOutlinePresenterControlCreator( - ISourceViewer sourceViewer, String commandId) { - // TODO Auto-generated method stub - return null; - } - protected void initializeQuickOutlineContexts( InformationPresenter presenter, IInformationProvider provider) { presenter.setInformationProvider(provider, @@ -218,4 +198,8 @@ assistant.setContentAssistProcessor(processor, IDocument.DEFAULT_CONTENT_TYPE); } + public IInformationPresenter getOutlinePresenter(ScriptSourceViewer viewer, + boolean doCodeResolve) { + return null; + } }
diff --git a/plugins/org.eclipse.dltk.python.ui/src/org/eclipse/dltk/python/internal/ui/text/folding/PythonFoldingStructureProvider.java b/plugins/org.eclipse.dltk.python.ui/src/org/eclipse/dltk/python/internal/ui/text/folding/PythonFoldingStructureProvider.java index 44462ec..9a24c4f 100644 --- a/plugins/org.eclipse.dltk.python.ui/src/org/eclipse/dltk/python/internal/ui/text/folding/PythonFoldingStructureProvider.java +++ b/plugins/org.eclipse.dltk.python.ui/src/org/eclipse/dltk/python/internal/ui/text/folding/PythonFoldingStructureProvider.java
@@ -9,11 +9,8 @@ *******************************************************************************/ package org.eclipse.dltk.python.internal.ui.text.folding; -import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.ILog; import org.eclipse.dltk.ast.ASTNode; -import org.eclipse.dltk.ast.parser.ISourceParser; -import org.eclipse.dltk.core.DLTKLanguageManager; import org.eclipse.dltk.python.core.PythonNature; import org.eclipse.dltk.python.internal.ui.PythonUI; import org.eclipse.dltk.python.internal.ui.text.PythonPartitionScanner;