示例#1
0
 /*
  * @see org.eclipse.ui.editors.text.TextEditorActionContributor#init(org.eclipse.ui.IActionBars)
  */
 @Override
 public void init(IActionBars bars) {
   super.init(bars);
   bars.setGlobalActionHandler(
       ITextEditorActionDefinitionIds.TOGGLE_SHOW_SELECTED_ELEMENT_ONLY, fTogglePresentation);
 }
 /* (non-Javadoc)
  * @see org.eclipse.ui.part.EditorActionBarContributor#init(org.eclipse.ui.IActionBars, org.eclipse.ui.IWorkbenchPage)
  */
 public void init(IActionBars bars, IWorkbenchPage page) {
   contributor.init(bars);
   super.init(bars, page);
 }