public abstract class JavaRefactoringPlugin extends ProgressProviderAdapter implements RefactoringPlugin
Modifier and Type | Class and Description |
---|---|
protected static class |
JavaRefactoringPlugin.Phase |
protected class |
JavaRefactoringPlugin.TransformTask |
Modifier and Type | Field and Description |
---|---|
protected boolean |
cancelRequest
Deprecated.
|
protected AtomicBoolean |
cancelRequested
true if cancel was requested
false otherwise
|
Constructor and Description |
---|
JavaRefactoringPlugin() |
addProgressListener, fireProgressListenerStart, fireProgressListenerStep, fireProgressListenerStep, fireProgressListenerStop, removeProgressListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
prepare
@Deprecated protected volatile boolean cancelRequest
protected final AtomicBoolean cancelRequested
public static Transaction createTransaction(@NonNull Collection<ModificationResult> modifications)
Transaction
.modifications
- collection of ModificationResult
RefactoringElementsBag.registerTransaction(Transaction)
protected Problem preCheck(CompilationController javac) throws IOException
IOException
protected Problem checkParameters(CompilationController javac) throws IOException
IOException
protected Problem fastCheckParameters(CompilationController javac) throws IOException
IOException
protected abstract JavaSource getJavaSource(JavaRefactoringPlugin.Phase p)
public Problem preCheck()
preCheck
in interface RefactoringPlugin
public Problem checkParameters()
checkParameters
in interface RefactoringPlugin
public Problem fastCheckParameters()
fastCheckParameters
in interface RefactoringPlugin
public void cancelRequest()
cancelRequest
in interface RefactoringPlugin
protected ClasspathInfo getClasspathInfo(AbstractRefactoring refactoring)
protected static Problem createProblem(Problem result, boolean isFatal, String message)
protected static Problem isElementAvail(TreePathHandle e, CompilationInfo info)
e
- element to checkinfo
- protected final Collection<ModificationResult> processFiles(Set<FileObject> files, CancellableTask<WorkingCopy> task) throws IOException
IOException
protected final Collection<ModificationResult> processFiles(Set<FileObject> files, CancellableTask<WorkingCopy> task, ClasspathInfo info) throws IOException
IOException
protected final void queryFiles(Set<FileObject> files, CancellableTask<? extends CompilationController> task) throws IOException
IOException
protected final void queryFiles(Set<FileObject> files, CancellableTask<? extends CompilationController> task, ClasspathInfo info) throws IOException
IOException
protected final Problem createAndAddElements(Set<FileObject> files, CancellableTask<WorkingCopy> task, RefactoringElementsBag elements, AbstractRefactoring refactoring, ClasspathInfo info)
protected final Problem createAndAddElements(Set<FileObject> files, CancellableTask<WorkingCopy> task, RefactoringElementsBag elements, AbstractRefactoring refactoring)