Index: src/org/codehaus/groovy/eclipse/editor/GroovyEditor.java =================================================================== --- . (revision 10718) +++ . (working copy) @@ -21,6 +21,7 @@ import org.eclipse.ui.texteditor.AbstractDecoratedTextEditor; import org.eclipse.ui.texteditor.ChainedPreferenceStore; import org.eclipse.ui.texteditor.ContentAssistAction; +import org.eclipse.ui.texteditor.ITextEditor; import org.eclipse.ui.texteditor.ITextEditorActionDefinitionIds; import org.eclipse.ui.texteditor.SourceViewerDecorationSupport; import org.eclipse.ui.texteditor.TextOperationAction; @@ -81,6 +82,9 @@ IFile file = (IFile) getEditorInput().getAdapter(IFile.class); if (file!=null) return new GroovyContentOutline(file); } + if (adapter.equals(ITextEditor.class)){ + return this; + } return super.getAdapter(adapter); } Index: src/org/codehaus/groovy/eclipse/editor/actions/EditorPartFacade.java =================================================================== --- . (revision 10718) +++ . (working copy) @@ -55,7 +55,7 @@ // until I decide what is needed. It took until 1.5 to get this c_tor? // -emp // try { - return (ITextEditor) editor; + return (ITextEditor) editor.getAdapter(ITextEditor.class); // } catch (ClassCastException e) { // throw new IllegalStateException("Expecting a text editor, found " // + editor.getClass().getName(), e);