@Override public void init(IActionBars bars, IWorkbenchPage page) { super.init(bars, page); bars.setGlobalActionHandler( IPythonEditorActionDefinitionIds.TOGGLE_MARK_OCCURRENCES, toggleMarkOccurrencesAction); }
/* * @see IEditorActionBarContributor#init(IActionBars, IWorkbenchPage) */ @Override public void init(IActionBars bars, IWorkbenchPage page) { fToggleBreadcrumbAction = new ToggleBreadcrumbAction(page); Iterator<RetargetAction> e = fPartListeners.iterator(); while (e.hasNext()) page.addPartListener(e.next()); super.init(bars, page); bars.setGlobalActionHandler( ITextEditorActionDefinitionIds.TOGGLE_SHOW_SELECTED_ELEMENT_ONLY, fTogglePresentation); bars.setGlobalActionHandler( IJavaEditorActionDefinitionIds.TOGGLE_MARK_OCCURRENCES, fToggleMarkOccurrencesAction); bars.setGlobalActionHandler( IJavaEditorActionDefinitionIds.TOGGLE_BREADCRUMB, fToggleBreadcrumbAction); }