Application-related options are referred as environment options. If you are using MagicDraw, they are saved in the global.opt file that is located in <user home directory>\AppData\Local\.magicdraw\<version number>\data. You can find this file for other modeling tools using the same location pattern.
You can add custom environment options for your modeling tool.
To add your own environment options
class MyOptionsGroup extends AbstractPropertyOptionsGroup { ... } Application application = Application.getInstance(); EnvironmentOptions options = application.getEnvironmentOptions(); options.addGroup(new MyOptionsGroup()); |
Application application = Application.getInstance(); EnvironmentOptions options = application.getEnvironmentOptions(); int imageDpi = options.getGeneralOptions().getImageResolutionDpi(); |
You can find the code examples in
|