mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
for scala: customizable option classes in OptionTableWithPreviewPanel
This commit is contained in:
+9
@@ -304,6 +304,15 @@ public abstract class OptionTableWithPreviewPanel extends MultilanguageCodeStyle
|
||||
return false;
|
||||
}
|
||||
|
||||
protected void addOption(Class<? extends CustomCodeStyleSettings> clazz, @NotNull String fieldName, @NotNull String title, @Nullable String groupName) {
|
||||
myOptions.add(new BooleanOption(clazz, fieldName, title, groupName));
|
||||
}
|
||||
|
||||
protected void addOption(Class<? extends CustomCodeStyleSettings> clazz, @NotNull String fieldName, @NotNull String title, @Nullable String groupName,
|
||||
@NotNull String[] options, @NotNull int[] values) {
|
||||
myOptions.add(new SelectionOption(clazz, fieldName, title, groupName, options, values));
|
||||
}
|
||||
|
||||
protected void addOption(@NotNull String fieldName, @NotNull String title) {
|
||||
addOption(fieldName, title, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user