com.nomagic.magicdraw.uml.symbols.DiagramPresentationElement is a one to one mapping to UML com.nomagic.uml2.ext.magicdraw.classes.mdkernel.Diagram. It means for every Diagram in a model exists one and only one DiagramPresentationElement. Use com.nomagic.magicdraw.core.Project.getDiagram(Diagram) to get it for a Diagram.
The purpose of this presentation element is to manage all other presentation elements used in a Diagram:
- To get a collection of inner presentation elements, use the com.nomagic.magicdraw.uml.symbols.PresentationElement.getPresentationElements() method. This method returns only direct children of the diagram.
- To open a diagram in the program UI, call DiagramPresentationElement.open().
- To create/modify/delete inner presentation elements of the diagram, use com.nomagic.magicdraw.openapi.uml.PresentationElementsManager.