@Override public void createActions() { if (fInputSet) { super.createActions(); // to avoid handler conflicts disable extra actions // we're not handling by CompareHandlerService getCorrectionCommands().deregisterCommands(); getRefactorActionGroup().dispose(); getGenerateActionGroup().dispose(); } // else do nothing, we will create actions later, when input is available } @Override
@Override public void createActions() { if (fInputSet) { super.createActions(); // to avoid handler conflicts disable extra actions // we're not handling by CompareHandlerService getCorrectionCommands().deregisterCommands(); getRefactorActionGroup().dispose(); getGenerateActionGroup().dispose(); } // else do nothing, we will create actions later, when input is available } @Override
/** * Override to replace some of the java editor actions * @see org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor#createActions() */ // Fix for bug 88474 protected void createActions() { super.createActions(); IAction organizeImports = new AJOrganizeImportsAction(this); organizeImports .setActionDefinitionId(IJavaEditorActionDefinitionIds.ORGANIZE_IMPORTS); setAction("OrganizeImports", organizeImports); //$NON-NLS-1$ IAction openDeclaration = new AJOpenAction(this); openDeclaration .setActionDefinitionId(IJavaEditorActionDefinitionIds.OPEN_EDITOR); setAction("OpenEditor", openDeclaration); //$NON-NLS-1$ }