Search in sources :

Example 11 with RefactoringRule

use of org.autorefactor.jdt.internal.corext.dom.RefactoringRule in project AutoRefactor by JnRouvignac.

the class ChooseCleanupsWizard method performFinish.

@Override
public boolean performFinish() {
    final List<RefactoringRule> refactoringRules = chooseCleanupsPage.getSelectedRefactorings();
    new PrepareApplyRefactoringsJob(javaElements, refactoringRules, AutoRefactorPlugin.getEnvironment()).schedule();
    return !refactoringRules.isEmpty();
}
Also used : RefactoringRule(org.autorefactor.jdt.internal.corext.dom.RefactoringRule) PrepareApplyRefactoringsJob(org.autorefactor.jdt.internal.corext.dom.PrepareApplyRefactoringsJob)

Aggregations

RefactoringRule (org.autorefactor.jdt.internal.corext.dom.RefactoringRule)11 Group (org.eclipse.swt.widgets.Group)4 GridData (org.eclipse.swt.layout.GridData)3 PrepareApplyRefactoringsJob (org.autorefactor.jdt.internal.corext.dom.PrepareApplyRefactoringsJob)2 BooleanFieldEditor (org.eclipse.jface.preference.BooleanFieldEditor)2 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)2 SelectionEvent (org.eclipse.swt.events.SelectionEvent)2 Button (org.eclipse.swt.widgets.Button)2 Composite (org.eclipse.swt.widgets.Composite)2 File (java.io.File)1 ConcurrentLinkedQueue (java.util.concurrent.ConcurrentLinkedQueue)1 Environment (org.autorefactor.environment.Environment)1 ApplyRefactoringsJob (org.autorefactor.jdt.internal.corext.dom.ApplyRefactoringsJob)1 JavaProjectOptions (org.autorefactor.jdt.internal.corext.dom.JavaProjectOptions)1 JavaProjectOptionsImpl (org.autorefactor.jdt.internal.corext.dom.JavaProjectOptionsImpl)1 JavaRefactoringRule (org.autorefactor.jdt.internal.corext.dom.JavaRefactoringRule)1 RefactoringUnit (org.autorefactor.jdt.internal.corext.dom.RefactoringUnit)1 AggregateASTVisitor (org.autorefactor.jdt.internal.ui.fix.AggregateASTVisitor)1 PreferenceConstants (org.autorefactor.preferences.PreferenceConstants)1 NotImplementedException (org.autorefactor.util.NotImplementedException)1