protected ICleanUp[] createCleanUps(ICompilationUnit[] units) { Map settings= new Hashtable(); settings.put(CleanUpConstants.ORGANIZE_IMPORTS, CleanUpConstants.TRUE); ImportsCleanUp importsCleanUp= new ImportsCleanUp(settings); return new ICleanUp[] { importsCleanUp }; }
@Override protected ICleanUp[] getCleanUps(ICompilationUnit[] units) { Map<String, String> settings= new Hashtable<>(); settings.put(CleanUpConstants.ORGANIZE_IMPORTS, CleanUpOptions.TRUE); ImportsCleanUp importsCleanUp= new ImportsCleanUp(settings); return new ICleanUp[] { importsCleanUp }; }
@Override protected ICleanUp[] getCleanUps(ICompilationUnit[] units) { Map<String, String> settings= new Hashtable<>(); settings.put(CleanUpConstants.ORGANIZE_IMPORTS, CleanUpOptions.TRUE); ImportsCleanUp importsCleanUp= new ImportsCleanUp(settings); return new ICleanUp[] { importsCleanUp }; }
@Override protected AbstractCleanUp[] createPreviewCleanUps(Map<String, String> values) { return new AbstractCleanUp[] { new ImportsCleanUp(values), new CodeFormatCleanUp(values), new SortMembersCleanUp(values) }; }
@Override protected AbstractCleanUp[] createPreviewCleanUps(Map<String, String> values) { return new AbstractCleanUp[] { new ImportsCleanUp(values), new CodeFormatCleanUp(values), new SortMembersCleanUp(values) }; }
protected ICleanUp[] createPreviewCleanUps(Map values) { return new ICleanUp[] { new ImportsCleanUp(values), new CommentFormatCleanUp(values), new CodeFormatCleanUp(values), new SortMembersCleanUp(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()}; }
public static ICleanUp[] createCleanUps(Map settings) { return new ICleanUp[] { new CodeStyleCleanUp(settings), new ControlStatementsCleanUp(settings), new ConvertLoopCleanUp(settings), new VariableDeclarationCleanUp(settings), new ExpressionsCleanUp(settings), new UnusedCodeCleanUp(settings), new Java50CleanUp(settings), new PotentialProgrammingProblemsCleanUp(settings), new UnnecessaryCodeCleanUp(settings), new StringCleanUp(settings), new SortMembersCleanUp(settings), new ImportsCleanUp(settings), new CodeFormatCleanUp(settings), new CommentFormatCleanUp(settings)}; } }