Search in sources :

Example 1 with Gens

use of com.intellij.psi.codeStyle.extractor.values.Gens in project intellij-community by JetBrains.

the class GenProcessor method runWithProgress.

@Override
public Gens runWithProgress(Project project, CodeStyleSettings settings, PsiFile file, ProgressIndicator indicator) {
    final Gens origGens = new Gens(getFormattingValues(settings, file.getLanguage()));
    final Gens forSelection = origGens.copy();
    final Differ differ = myLangExtractor.getDiffer(project, file, settings);
    forSelection.dropToInitial();
    Utils.resetRandom();
    long startTime = System.nanoTime();
    Utils.adjustValuesGA(forSelection, differ, indicator);
    reportResult("GA", forSelection, differ, startTime, file.getName());
    startTime = System.nanoTime();
    Utils.adjustValuesMin(forSelection, differ, indicator);
    reportResult("MIN", forSelection, differ, startTime, file.getName());
    return forSelection;
}
Also used : Gens(com.intellij.psi.codeStyle.extractor.values.Gens) Differ(com.intellij.psi.codeStyle.extractor.differ.Differ)

Aggregations

Differ (com.intellij.psi.codeStyle.extractor.differ.Differ)1 Gens (com.intellij.psi.codeStyle.extractor.values.Gens)1