Open API in version 15.0 and later versions has changed together with changes in the UML 2.1.2 (2.2) specification. You should read this chapter if you want to migrate your plugin created for earlier MagicDraw version.
Thereby we made a cleaner UML metamodel implementation API after the UML specification has been updated. There are no big changes in Open API, so migration will not be a long and complicate task for you.
The changes that have been made to Open API are the following:
Removed deprecated method | Substitution |
---|---|
BaseElement.getProject() | Project.getProject(BaseElement) |
MainFrame.getDialogParent() | MDDialogParentProvider.getProvider().getDialogParent() |
MainFrame.setDialogParent(Frame) | MDDialogParentProvider.getProvider().setDialogParent(Frame) |
ElementListProperty.setStereotype(Stereotype) | ElementListProperty.setSelectableRestrictedElements(Collection) |