Page History
In version 17.0.1 of MagicDraw (or other modeling tool developed by us), the UML metamodel has only one package - UML, and all UML metadata exist in this package. All UML metadata can be found in com.nomagic.uml2.ext.magicdraw.metadata.UMLPackage. For example:
Code Block | ||
---|---|---|
| ||
EAttribute nameAttribute = UMLPackage.Literals.NAMED_ELEMENT__NAME; |
UML model elements can be created using the EMF factory com.nomagic.uml2.ext.magicdraw.metadata.UMLFactory. For example:
Code Block | ||
---|---|---|
| ||
Component component = UMLFactory.eINSTANCE.createComponent(); |
...
There is no strict definition how EMF resources are organized in MagicDraw project. It depends on the project type (local or from the Teamwork Cloud server).