Module used to interact with Papyrus Editor.
This module depends on following other modules which will automatically be loaded.
Method | Description |
---|---|
control() | Use the control function of papyrus. |
createDiagram() | Create a new empty diagram. |
eInstanceOf() | Return if the current instance is a instance of an EClass define by its name. |
getModelSet() | Return the model set (ResourceSet) of the current model open in Papyrus. |
getSelectionElement() | Return the UML element from the selection. |
getSelectionView() | Return the select view element (Notation metamodel). |
void control(org.eclipse.emf.ecore.EObject semanticElement, String fileName)
Use the control function of papyrus. That is to say that all contained element diagrams will be stored in a different resource.
void createDiagram(org.eclipse.emf.ecore.EObject semanticElement, [String diagramType], [String diagramName], [boolean open])
Create a new empty diagram. WARNING: For now only Class diagrams are implemented.
true
if the diagram shall be openedOptional: defaults to <als>.boolean eInstanceOf(org.eclipse.emf.ecore.EObject eObject, String type)
Return if the current instance is a instance of an EClass define by its name. Will look into UML and Notation metamodel.
true
if the EObject is instance of typeName
org.eclipse.papyrus.infra.core.resource.ModelSet getModelSet()
Return the model set (ResourceSet) of the current model open in Papyrus.
current model set
org.eclipse.uml2.uml.Element getSelectionElement()
Return the UML element from the selection.
UML element or null
org.eclipse.gmf.runtime.notation.View getSelectionView()
Return the select view element (Notation metamodel).
selection view or null