protected ICleanUp[] createPreviewCleanUps(Map values) { return new ICleanUp[] { new ImportsCleanUp(values), new CommentFormatCleanUp(values), new CodeFormatCleanUp(values), new SortMembersCleanUp(values) }; }
@Override protected AbstractCleanUp[] createPreviewCleanUps(Map<String, String> values) { return new AbstractCleanUp[] { new UnusedCodeCleanUp(values), new UnnecessaryCodeCleanUp(values), new StringCleanUp(values), new TypeParametersCleanUp(values) }; }
@Override protected AbstractCleanUp[] createPreviewCleanUps(Map<String, String> values) { return new AbstractCleanUp[] { new UnusedCodeCleanUp(values), new UnnecessaryCodeCleanUp(values), new StringCleanUp(values), new TypeParametersCleanUp(values), new RedundantModifiersCleanUp(values), new RedundantSemicolonsCleanUp(values) }; }
public static ICleanUp[] createCleanUps() { return new ICleanUp[] { new CodeStyleCleanUp(), new ControlStatementsCleanUp(), new ConvertLoopCleanUp(), new VariableDeclarationCleanUp(), new ExpressionsCleanUp(), new UnusedCodeCleanUp(), new Java50CleanUp(), new PotentialProgrammingProblemsCleanUp(), new UnnecessaryCodeCleanUp(), new StringCleanUp(), new SortMembersCleanUp(), new ImportsCleanUp(), new CodeFormatCleanUp(), new CommentFormatCleanUp()}; }
@Override protected AbstractCleanUp[] createPreviewCleanUps(Map<String, String> values) { return new AbstractCleanUp[] { new ControlStatementsCleanUp(values), new ConvertLoopCleanUp(values), new ExpressionsCleanUp(values), new VariableDeclarationCleanUp(values), new LambdaExpressionsCleanUp(values) }; }
@Override protected AbstractCleanUp[] createPreviewCleanUps(Map<String, String> values) { return new AbstractCleanUp[] { new ImportsCleanUp(values), new CodeFormatCleanUp(values), new SortMembersCleanUp(values) }; }
@Override protected void addUserInputPages() { addPage(new CleanUpConfigurationPage((CleanUpRefactoring)getRefactoring())); }
protected ICleanUp[] createPreviewCleanUps(Map values) { return new ICleanUp[] { new UnusedCodeCleanUp(values), new UnnecessaryCodeCleanUp(values), new StringCleanUp(values) }; }
public CleanUpRefactoringWizard(CleanUpRefactoring refactoring, int flags) { super(refactoring, flags); setDefaultPageTitle(MultiFixMessages.CleanUpRefactoringWizard_PageTitle); setWindowTitle(MultiFixMessages.CleanUpRefactoringWizard_WindowTitle); setDefaultPageImageDescriptor(JavaPluginImages.DESC_WIZBAN_CLEAN_UP); }
@Override protected AbstractCleanUp[] createPreviewCleanUps(Map<String, String> values) { return new AbstractCleanUp[] { new Java50CleanUp(values), new PotentialProgrammingProblemsCleanUp(values), new UnimplementedCodeCleanUp(values) }; }
@Override public void widgetSelected(SelectionEvent e) { Hashtable<String, String> workingValues= new Hashtable<>(fCustomSettings); CleanUpSelectionDialog dialog= new WizardCleanUpSelectionDialog(getShell(), workingValues); if (dialog.open() == Window.OK) { fCustomSettings= workingValues; showCustomSettings(bulletListBlock); } } });
protected ICleanUp[] createPreviewCleanUps(Map values) { return new ICleanUp[] { new Java50CleanUp(values), new PotentialProgrammingProblemsCleanUp(values) }; }
/** * {@inheritDoc} */ public boolean needsFreshAST(CompilationUnit compilationUnit) { if (isEnabled(CleanUpConstants.ORGANIZE_IMPORTS)) return true; return super.needsFreshAST(compilationUnit); }
public IFix createFix(ICompilationUnit compilationUnit) throws CoreException { if (compilationUnit == null) return null; boolean removeWhitespaces= isEnabled(CleanUpConstants.FORMAT_REMOVE_TRAILING_WHITESPACES); return CodeFormatFix.createCleanUp(compilationUnit, isEnabled(CleanUpConstants.FORMAT_SOURCE_CODE), removeWhitespaces && isEnabled(CleanUpConstants.FORMAT_REMOVE_TRAILING_WHITESPACES_ALL), removeWhitespaces && isEnabled(CleanUpConstants.FORMAT_REMOVE_TRAILING_WHITESPACES_IGNORE_EMPTY)); }
protected AbstractCleanUp(Map<String, String> settings) { setOptions(new MapCleanUpOptions(settings)); }
@Override protected AbstractCleanUp[] createPreviewCleanUps(Map<String, String> values) { return new AbstractCleanUp[] { new ControlStatementsCleanUp(values), new ConvertLoopCleanUp(values), new ExpressionsCleanUp(values), new VariableDeclarationCleanUp(values), new LambdaExpressionsCleanUp(values) }; }
@Override protected AbstractCleanUp[] createPreviewCleanUps(Map<String, String> values) { return new AbstractCleanUp[] { new ImportsCleanUp(values), new CodeFormatCleanUp(values), new SortMembersCleanUp(values) }; }
@Override protected void addUserInputPages() { addPage(new CleanUpConfigurationPage((CleanUpRefactoring)getRefactoring())); }
@Override protected AbstractCleanUp[] createPreviewCleanUps(Map<String, String> values) { return new AbstractCleanUp[] { new Java50CleanUp(values), new PotentialProgrammingProblemsCleanUp(values), new UnimplementedCodeCleanUp(values) }; }
protected ICleanUp[] createPreviewCleanUps(Map values) { return new ICleanUp[] { new ControlStatementsCleanUp(values), new ConvertLoopCleanUp(values), new ExpressionsCleanUp(values), new VariableDeclarationCleanUp(values) }; }