use of com.intellij.psi.codeStyle.CodeStyleSettingsCodeFragmentFilter in project intellij-community by JetBrains.
the class ConfigureCodeStyleOnSelectedFragment method calculateAffectingSettings.
private static CodeStyleSettingsToShow calculateAffectingSettings(@NotNull Editor editor, @NotNull PsiFile file) {
SelectionModel model = editor.getSelectionModel();
int start = model.getSelectionStart();
int end = model.getSelectionEnd();
CodeStyleSettingsCodeFragmentFilter settingsProvider = new CodeStyleSettingsCodeFragmentFilter(file, new TextRange(start, end));
return CodeFragmentCodeStyleSettingsPanel.calcSettingNamesToShow(settingsProvider);
}
Aggregations