use of org.eclipse.ui.texteditor.ShowWhitespaceCharactersAction in project xtext-xtend by eclipse.
the class ShowWhitespaceCharactersActionContributor method editorDisposed.
@Override
public void editorDisposed(XtextEditor editor) {
IToolBarManager toolBarManager = editor.getEditorSite().getActionBars().getToolBarManager();
IContributionItem i = toolBarManager.remove(ITextEditorActionConstants.SHOW_WHITESPACE_CHARACTERS);
if (i instanceof ActionContributionItem) {
IAction action = ((ActionContributionItem) i).getAction();
if (action instanceof ShowWhitespaceCharactersAction) {
((ShowWhitespaceCharactersAction) action).setEditor(null);
}
}
}
Aggregations