public final class OptionsDisplayer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ADVANCED
Registration name of Advanced category (aka Miscellaneous).
|
static String |
EDITOR
Registration name of Editor category.
|
static String |
FONTSANDCOLORS
Registration name of FontsAndColors category (aka Fonts & Colors).
|
static String |
GENERAL
Registration name of General category.
|
static String |
KEYMAPS
Registration name of Keymaps category (aka Keymap).
|
Modifier and Type | Method and Description |
---|---|
static OptionsDisplayer |
getDefault()
Get the default
OptionsDisplayer |
boolean |
open()
Open the options dialog (in non-modal mode) with no guarantee which category is pre-selected.
|
boolean |
open(boolean isModal)
Open the options dialog with no guarantee which category is pre-selected.
|
boolean |
open(String path)
Open the options dialog (in non-modal mode) with some panel preselected.
|
boolean |
open(String path,
boolean isModal)
Open the options dialog with some panel preselected.
|
public static final String ADVANCED
public static final String KEYMAPS
public static final String FONTSANDCOLORS
public static final String EDITOR
public static final String GENERAL
public static OptionsDisplayer getDefault()
OptionsDisplayer
public boolean open()
public boolean open(String path)
OptionsPanelController.TopLevelRegistration.id()
.
To open a subpanel, pass its OptionsPanelController.SubRegistration.location()
followed by /
followed by its OptionsPanelController.SubRegistration.id()
.
To open a container panel without specifying a particular subpanel, pass its OptionsPanelController.ContainerRegistration.id()
.
To avoid typos and keep track of dependencies it is recommended to define compile-time
constants for all these IDs, to be used both by the annotations and by calls to this method.path
- slash-separated path of category and perhaps subcategories to be selectedOptionsPanelController
to handle such situation.public boolean open(boolean isModal)
isModal
- true if the options window should be in modal mode, false otherwisepublic boolean open(String path, boolean isModal)
OptionsPanelController.TopLevelRegistration.id()
.
To open a subpanel, pass its OptionsPanelController.SubRegistration.location()
followed by /
followed by its OptionsPanelController.SubRegistration.id()
.
To open a container panel without specifying a particular subpanel, pass its OptionsPanelController.ContainerRegistration.id()
.
To avoid typos and keep track of dependencies it is recommended to define compile-time
constants for all these IDs, to be used both by the annotations and by calls to this method.path
- slash-separated path of category and perhaps subcategories to be selectedisModal
- true if the options window should be in modal mode, false otherwiseOptionsPanelController
to handle such situation.