...
You can add custom environment options for your modeling tool.
To add your own environment options
...
- Extend the com.nomagic.magicdraw.core.options.AbstractPropertyOptionsGroup class.
- Add the extending class to application environment options.
...
| Code Block | ||
|---|---|---|
| ||
class MyOptionsGroup extends AbstractPropertyOptionsGroup
{
...
}
Application application = Application.getInstance();
EnvironmentOptions options = application.getEnvironmentOptions();
options.addGroup(new MyOptionsGroup()); |
...
Example of accessing environment options
...
| Info |
|---|
You can find the code examples in
|
...