| java.lang.Object org.netbeans.modules.refactoring.spi.ProgressProviderAdapter org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin org.netbeans.modules.refactoring.java.plugins.SafeDeleteRefactoringPlugin
SafeDeleteRefactoringPlugin | public class SafeDeleteRefactoringPlugin extends JavaRefactoringPlugin (Code) | | The plugin that carries out Safe Delete refactoring.
author: Bharath Ravikumar author: Jan Becicka |
SafeDeleteRefactoringPlugin | public SafeDeleteRefactoringPlugin(SafeDeleteRefactoring refactoring)(Code) | | Creates the a new instance of the Safe Delete refactoring
plugin.
Parameters: refactoring - The refactoring to be used by this plugin |
checkParameters | public Problem checkParameters()(Code) | | Invokes the checkParameters of each of the underlying
WhereUsed refactorings and returns a Problem (if any)
returned by any of these queries.
|
fastCheckParameters | public Problem fastCheckParameters()(Code) | | A No-op for this particular refactoring.
|
getJavaSource | protected JavaSource getJavaSource(Phase p)(Code) | | |
preCheck | public Problem preCheck()(Code) | | Checks whether the element being refactored is a valid Method/Field/Class
Problem returns a generic problem message if the check fails |
prepare | public Problem prepare(RefactoringElementsBag refactoringElements)(Code) | | For each element to be refactored, the corresponding
prepare method of the underlying WhereUsed query is
invoked to check for usages. If none is present, a
SafeDeleteRefactoringElement is created
with the corresponding element.
Parameters: refactoringElements - |
Fields inherited from org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin | protected volatile boolean cancelRequest(Code)(Java Doc)
|
Methods inherited from org.netbeans.modules.refactoring.java.spi.JavaRefactoringPlugin | public void cancelRequest()(Code)(Java Doc) protected Problem checkParameters(CompilationController javac) throws IOException(Code)(Java Doc) public Problem checkParameters()(Code)(Java Doc) final protected void createAndAddElements(Set<FileObject> files, CancellableTask<WorkingCopy> task, RefactoringElementsBag elements, AbstractRefactoring refactoring, ClasspathInfo info)(Code)(Java Doc) final protected void createAndAddElements(Set<FileObject> files, CancellableTask<WorkingCopy> task, RefactoringElementsBag elements, AbstractRefactoring refactoring)(Code)(Java Doc) final protected static Problem createProblem(Problem result, boolean isFatal, String message)(Code)(Java Doc) protected Problem fastCheckParameters(CompilationController javac) throws IOException(Code)(Java Doc) public Problem fastCheckParameters()(Code)(Java Doc) protected ClasspathInfo getClasspathInfo(AbstractRefactoring refactoring)(Code)(Java Doc) abstract protected JavaSource getJavaSource(Phase p)(Code)(Java Doc) protected static Problem isElementAvail(TreePathHandle e, CompilationInfo info)(Code)(Java Doc) protected Problem preCheck(CompilationController javac) throws IOException(Code)(Java Doc) public Problem preCheck()(Code)(Java Doc) final protected Collection<ModificationResult> processFiles(Set<FileObject> files, CancellableTask<WorkingCopy> task)(Code)(Java Doc) final protected Collection<ModificationResult> processFiles(Set<FileObject> files, CancellableTask<WorkingCopy> task, ClasspathInfo info)(Code)(Java Doc)
|
|
|