Search in sources :

Example 6 with RefactoringRule

use of org.autorefactor.refactoring.RefactoringRule in project AutoRefactor by JnRouvignac.

the class ChooseRefactoringsWizard method performFinish.

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

Aggregations

RefactoringRule (org.autorefactor.refactoring.RefactoringRule)6 GridData (org.eclipse.swt.layout.GridData)2 Group (org.eclipse.swt.widgets.Group)2 File (java.io.File)1 PreferenceConstants (org.autorefactor.preferences.PreferenceConstants)1 ApplyRefactoringsJob (org.autorefactor.refactoring.ApplyRefactoringsJob)1 PrepareApplyRefactoringsJob (org.autorefactor.refactoring.PrepareApplyRefactoringsJob)1 NotImplementedException (org.autorefactor.util.NotImplementedException)1 NullProgressMonitor (org.eclipse.core.runtime.NullProgressMonitor)1 ICompilationUnit (org.eclipse.jdt.core.ICompilationUnit)1 IPackageFragment (org.eclipse.jdt.core.IPackageFragment)1 BooleanFieldEditor (org.eclipse.jface.preference.BooleanFieldEditor)1 FieldEditor (org.eclipse.jface.preference.FieldEditor)1 IPreferenceStore (org.eclipse.jface.preference.IPreferenceStore)1 Document (org.eclipse.jface.text.Document)1 IDocument (org.eclipse.jface.text.IDocument)1 ArrayContentProvider (org.eclipse.jface.viewers.ArrayContentProvider)1 CheckboxTableViewer (org.eclipse.jface.viewers.CheckboxTableViewer)1 ICheckStateProvider (org.eclipse.jface.viewers.ICheckStateProvider)1 StructuredViewer (org.eclipse.jface.viewers.StructuredViewer)1