use of com.intellij.psi.codeStyle.extractor.differ.Differ in project intellij-community by JetBrains.
the class BruteForceProcessor method runWithProgress.
@Override
public ValuesExtractionResult runWithProgress(Project project, CodeStyleSettings settings, PsiFile file, ProgressIndicator indicator) {
List<Value> values = getFormattingValues(settings, file.getLanguage());
Differ differ = myLangExtractor.getDiffer(project, file, settings);
ValuesExtractionResult container = new ValuesExtractionResultImpl(values);
Utils.adjustValuesMin(container, differ, indicator);
return container;
}
use of com.intellij.psi.codeStyle.extractor.differ.Differ 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;
}
Aggregations