Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can add custom environment options for your modeling tool.

 


To add your own environment options

...

  1. Extend the com.nomagic.magicdraw.core.options.AbstractPropertyOptionsGroup class.
  2. Add the extending class to application environment options.

...

Code Block
languagejava
	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

  • <installation_directory>\openapi\examples\environmentoptions

...