use of com.intellij.openapi.options.ConfigurableGroup in project intellij-community by JetBrains.
the class ShowSettingsUtilImpl method showSettingsDialog.
public static void showSettingsDialog(@Nullable Project project, final String id2Select, final String filter) {
ConfigurableGroup[] group = getConfigurableGroups(project, true);
group = filterEmptyGroups(group);
final Configurable configurable2Select = id2Select == null ? null : new ConfigurableVisitor.ByID(id2Select).find(group);
SettingsDialogFactory.getInstance().create(getProject(project), group, configurable2Select, filter).show();
}
use of com.intellij.openapi.options.ConfigurableGroup in project intellij-community by JetBrains.
the class IdeSettingsDialogFixture method getProjectSettingsNames.
@NotNull
public List<String> getProjectSettingsNames() {
List<String> names = new ArrayList<>();
JPanel optionsEditor = field("myEditor").ofType(JPanel.class).in(getDialogWrapper()).get();
assertNotNull(optionsEditor);
List<JComponent> trees = findComponentsOfType(optionsEditor, "com.intellij.openapi.options.newEditor.SettingsTreeView");
assertThat(trees).hasSize(1);
JComponent tree = trees.get(0);
CachingSimpleNode root = field("myRoot").ofType(CachingSimpleNode.class).in(tree).get();
assertNotNull(root);
ConfigurableGroup[] groups = field("myGroups").ofType(ConfigurableGroup[].class).in(root).get();
assertNotNull(groups);
for (ConfigurableGroup current : groups) {
Configurable[] configurables = current.getConfigurables();
for (Configurable configurable : configurables) {
names.add(configurable.getDisplayName());
}
}
return names;
}
Aggregations