/** * Note: This constructor is for internal use only. Clients should not call this constructor. * @param editor the java editor * * @noreference This constructor is not intended to be referenced by clients. */ public ReplaceInvocationsAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(true); }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * @param editor the compilation unit editor * * @noreference This constructor is not intended to be referenced by clients. */ public IntroduceIndirectionAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(true); }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * @param editor the compilation unit editor */ public IntroduceParameterObjectAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(true); }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * @param editor the java editor * * @noreference This constructor is not intended to be referenced by clients. */ public ExtractInterfaceAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * @param editor the java editor * * @noreference This constructor is not intended to be referenced by clients. */ public ExtractClassAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * * @param editor the java editor * * @noreference This constructor is not intended to be referenced by clients. */ public InlineTempAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }
/** * Note: This constructor is for internal use only. Clients should not call * this constructor. * @param editor the java editor * * @noreference This constructor is not intended to be referenced by clients. */ public ConvertNestedToTopAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * * @param editor the Java editor * * @noreference This constructor is not intended to be referenced by clients. */ public InferTypeArgumentsAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * * @param editor the Java editor */ public FindExceptionOccurrencesAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(getEditorInput(editor) != null); }
final Shell getShell() { if (fEditor != null) return fEditor.getEditorSite().getShell(); return JavaPlugin.getActiveWorkbenchShell(); }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * @param editor the java editor */ public InlineMethodAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * @param editor the java editor */ public IntroduceFactoryAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.getInputAsCompilationUnit(fEditor) != null); }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * @param editor the Java editor * * @noreference This constructor is not intended to be referenced by clients. */ public OpenTypeHierarchyAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.canOperateOn(fEditor)); }
/** * Note: This constructor is for internal use only. Clients should not call * this constructor. * @param editor the java editor * * @noreference This constructor is not intended to be referenced by clients. */ public ChangeTypeAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(SelectionConverter.getInputAsCompilationUnit(fEditor) != null); }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * * @param editor the Java editor * * @noreference This constructor is not intended to be referenced by clients. */ public FindBreakContinueTargetOccurrencesAction(JavaEditor editor) { this(editor.getEditorSite()); fEditor= editor; setEnabled(getEditorInput(editor) != null); }
@Override public void windowDeactivated(IWorkbenchWindow window) { if (window == getEditorSite().getWorkbenchWindow() && fMarkOccurrenceAnnotations && isActivePart()) removeOccurrenceAnnotations(); }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * @param editor the java editor */ public ExtractTempAction(JavaEditor editor) { super(editor.getEditorSite()); setText(RefactoringMessages.ExtractTempAction_label); fEditor= editor; setEnabled(SelectionConverter.getInputAsCompilationUnit(fEditor) != null); PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.EXTRACT_TEMP_ACTION); }
/** * Note: This constructor is for internal use only. Clients should not call this constructor. * @param editor the java editor */ public ExtractConstantAction(JavaEditor editor) { super(editor.getEditorSite()); setText(RefactoringMessages.ExtractConstantAction_label); fEditor= editor; setEnabled(SelectionConverter.getInputAsCompilationUnit(fEditor) != null); PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJavaHelpContextIds.EXTRACT_CONSTANT_ACTION); }
public void windowActivated(IWorkbenchWindow window) { if (window == getEditorSite().getWorkbenchWindow() && fMarkOccurrenceAnnotations && isActivePart()) { fForcedMarkOccurrencesSelection= getSelectionProvider().getSelection(); updateOccurrenceAnnotations((ITextSelection)fForcedMarkOccurrencesSelection, JavaPlugin.getDefault().getASTProvider().getAST(getInputJavaElement(), ASTProvider.WAIT_NO, getProgressMonitor())); } }
@Override protected void activateBreadcrumb() { fEditorSelection= getJavaEditor().getSelectionProvider().getSelection(); IEditorSite editorSite= getJavaEditor().getEditorSite(); editorSite.getKeyBindingService().setScopes(new String[] { "org.eclipse.jdt.ui.breadcrumbEditorScope" }); //$NON-NLS-1$ getJavaEditor().setActionsActivated(false); fBreadcrumbActionGroup.fillActionBars(editorSite.getActionBars()); }