@OpenApi
public class EnvironmentOptions
extends java.lang.Object
Represents application environment options.
Application-related options are referred to as environment options.
They are saved in the global.opt
file that is located in <USER_HOME_DIR>/.magicdraw/<VERSION_NUMBER>/data
.
You can add custom environment options for MagicDraw.
To add your own environment options
class MyOptionsGroup extends AbstractPropertyOptionsGroup { ... } Application application = Application.getInstance(); EnvironmentOptions options = application.getEnvironmentOptions(); options.addGroup(new ExampleOptionsGroup());
OptionsGroup
,
AbstractPropertyOptionsGroup
Modifier and Type | Class and Description |
---|---|
static interface |
EnvironmentOptions.EnvironmentChangeListener
Receives events when environment options change
in the environment options dialog after "Ok" is pressed.
|
Modifier and Type | Method and Description |
---|---|
void |
addEnvironmentChangeListener(EnvironmentOptions.EnvironmentChangeListener listener)
Adds environment change listener to environment options.
|
void |
addGroup(OptionsGroup group)
Adds an option group to the environment options.
|
PathVariablesOptionsGroup |
getPathVariablesOptions()
Get path variables options.
|
void |
removeEnvironmentChangeListener(EnvironmentOptions.EnvironmentChangeListener listener)
Removes environment change listener.
|
@OpenApi public void addGroup(OptionsGroup group)
group
- option group to add.@OpenApi public PathVariablesOptionsGroup getPathVariablesOptions()
@OpenApi public void addEnvironmentChangeListener(EnvironmentOptions.EnvironmentChangeListener listener)
listener
- listener to add.@OpenApi public void removeEnvironmentChangeListener(EnvironmentOptions.EnvironmentChangeListener listener)
listener
- listener to remove.