public IJavaProject getProject() { if (fSelectionCompilationUnit != null) return fSelectionCompilationUnit.getJavaProject(); if (fSelectionClassFile != null) return fSelectionClassFile.getJavaProject(); if (fTargetMethod != null) return fTargetMethod.getJavaProject(); return null; }
@Override public final ASTNode getTargetNode() throws JavaModelException { return JavadocUtil.createParamTag(fTargetName, declaration.getAST(), fMethod.getJavaProject()); } });
@Override public final ASTNode getTargetNode() throws JavaModelException { return JavadocUtil.createParamTag(fTargetName, declaration.getAST(), fMethod.getJavaProject()); } });
public IJavaProject getProject() { if (fSelectionCompilationUnit != null) return fSelectionCompilationUnit.getJavaProject(); if (fSelectionClassFile != null) return fSelectionClassFile.getJavaProject(); if (fTargetMethod != null) return fTargetMethod.getJavaProject(); return null; }
public IJavaProject getProject() { if (fSelectionCompilationUnit != null) return fSelectionCompilationUnit.getJavaProject(); if (fSelectionClassFile != null) return fSelectionClassFile.getJavaProject(); if (fTargetMethod != null) return fTargetMethod.getJavaProject(); return null; }
public final ASTNode getTargetNode() throws JavaModelException { return JavadocUtil.createParamTag(fTargetName, declaration.getAST(), fMethod.getJavaProject()); } });
public final ASTNode getArgumentNode(final IVariableBinding argument, final boolean last) throws JavaModelException { Assert.isNotNull(argument); if (elements.containsKey(argument.getKey())) return rewrite.createCopyTarget((ASTNode) elements.get(argument.getKey())); return JavadocUtil.createParamTag(argument.getName(), declaration.getAST(), fMethod.getJavaProject()); }
@Override public final ASTNode getArgumentNode(final IVariableBinding argument, final boolean last) throws JavaModelException { Assert.isNotNull(argument); if (elements.containsKey(argument.getKey())) return rewrite.createCopyTarget(elements.get(argument.getKey())); return JavadocUtil.createParamTag(argument.getName(), declaration.getAST(), fMethod.getJavaProject()); }
@Override public final ASTNode getArgumentNode(final IVariableBinding argument, final boolean last) throws JavaModelException { Assert.isNotNull(argument); if (elements.containsKey(argument.getKey())) return rewrite.createCopyTarget(elements.get(argument.getKey())); return JavadocUtil.createParamTag(argument.getName(), declaration.getAST(), fMethod.getJavaProject()); }
private Control createExceptionsTableControl(Composite parent) { Composite border= new Composite(parent, SWT.NONE); border.setLayout(new GridLayout()); ChangeExceptionsControl cp= new ChangeExceptionsControl(border, SWT.NONE, new IExceptionListChangeListener() { public void exceptionListChanged() { update(true); } }, getChangeMethodSignatureRefactoring().getMethod().getJavaProject()); cp.setLayoutData(new GridData(GridData.FILL_BOTH)); cp.setInput(getChangeMethodSignatureRefactoring().getExceptionInfos()); return border; }
private Control createExceptionsTableControl(Composite parent) { Composite border= new Composite(parent, SWT.NONE); border.setLayout(new GridLayout()); ChangeExceptionsControl cp= new ChangeExceptionsControl(border, SWT.NONE, new IExceptionListChangeListener() { @Override public void exceptionListChanged() { update(true); } }, getChangeMethodSignatureProcessor().getMethod().getJavaProject()); cp.setLayoutData(new GridData(GridData.FILL_BOTH)); cp.setInput(getChangeMethodSignatureProcessor().getExceptionInfos()); return border; }
private Control createExceptionsTableControl(Composite parent) { Composite border= new Composite(parent, SWT.NONE); border.setLayout(new GridLayout()); ChangeExceptionsControl cp= new ChangeExceptionsControl(border, SWT.NONE, new IExceptionListChangeListener() { @Override public void exceptionListChanged() { update(true); } }, getChangeMethodSignatureProcessor().getMethod().getJavaProject()); cp.setLayoutData(new GridData(GridData.FILL_BOTH)); cp.setInput(getChangeMethodSignatureProcessor().getExceptionInfos()); return border; }
public IJavaSearchScope getSearchScope() { IMethod method = this.fGroup.getView().getMethod(); if (method == null) { return null; } JavaSearchScopeFactory factory= JavaSearchScopeFactory.getInstance(); return factory.createJavaProjectSearchScope(method.getJavaProject(), true); }
private RefactoringStatus checkParameterTypeSyntax(ParameterInfo info) { if (! info.isAdded() && ! info.isTypeNameChanged()) return null; return TypeContextChecker.checkParameterTypeSyntax(info.getNewTypeName(), fMethod.getJavaProject()); }
public String getFullDescription() { IMethod method = this.fGroup.getView().getMethod(); if (method != null) { JavaSearchScopeFactory factory= JavaSearchScopeFactory.getInstance(); return factory.getProjectScopeDescription(method.getJavaProject(), true); } return ""; //$NON-NLS-1$ } }
private RefactoringStatus checkParameterTypeSyntax(ParameterInfo info) { if (!info.isAdded() && !info.isTypeNameChanged() && !info.isDeleted()) return null; return TypeContextChecker.checkParameterTypeSyntax(info.getNewTypeName(), fMethod.getJavaProject()); }
private RefactoringStatus checkParameterTypeSyntax(ParameterInfo info) { if (!info.isAdded() && !info.isTypeNameChanged() && !info.isDeleted()) return null; return TypeContextChecker.checkParameterTypeSyntax(info.getNewTypeName(), fMethod.getJavaProject()); }
public static void startMoveMethodRefactoring(final IMethod method, final Shell shell) { MoveInstanceMethodProcessor processor= new MoveInstanceMethodProcessor(method, JavaPreferencesSettings.getCodeGenerationSettings(method.getJavaProject())); Refactoring refactoring= new MoveRefactoring(processor); MoveInstanceMethodWizard wizard= new MoveInstanceMethodWizard(processor, refactoring); new RefactoringStarter().activate(wizard, shell, RefactoringMessages.MoveInstanceMethodAction_dialog_title, RefactoringSaveHelper.SAVE_REFACTORING); }
public static void startMoveMethodRefactoring(final IMethod method, final Shell shell) { MoveInstanceMethodProcessor processor= new MoveInstanceMethodProcessor(method, JavaPreferencesSettings.getCodeGenerationSettings(method.getJavaProject())); Refactoring refactoring= new MoveRefactoring(processor); MoveInstanceMethodWizard wizard= new MoveInstanceMethodWizard(processor, refactoring); new RefactoringStarter().activate(wizard, shell, RefactoringMessages.MoveInstanceMethodAction_dialog_title, RefactoringSaveHelper.SAVE_REFACTORING); }
public static void startMoveMethodRefactoring(final IMethod method, final Shell shell) throws JavaModelException { final MoveInstanceMethodRefactoring refactoring= new MoveInstanceMethodRefactoring(new MoveInstanceMethodProcessor(method, JavaPreferencesSettings.getCodeGenerationSettings(method.getJavaProject()))); new RefactoringStarter().activate(refactoring, new MoveInstanceMethodWizard(refactoring), shell, RefactoringMessages.MoveInstanceMethodAction_dialog_title, RefactoringSaveHelper.SAVE_JAVA_ONLY_UPDATES); }