484950515253545556
public void setActiveEditor(IAction action, IEditorPart targetEditor) { if( targetEditor instanceof ITextEditor ) { editor = (ITextEditor)targetEditor; foldingSetter = new CodeFoldingSetter(editor); } }