Module used to interact with Papyrus Editor.
| getModelSet | Return the model set (ResourceSet) of the current model open in Papyrus |
|---|---|
| getSelectionView | Return the select view element (Notation metamodel) |
| getSelectionElement | Return the UML element from the selection |
| createDiagram | Create a new empty diagram WARNING: For now only Package and class diagram are implemented. |
| control | Use the control function of papyrus. That is to say that all contained element diagrams will be stored in a different resource. |
| eInstanceOf | The same as eInstanceOf of the Ecore model. However it will look into UML and Notation metamodel |
| save | The the current Papyrus editor. The object parameter is useless |
org.eclipse.papyrus.infra.core.resource.ModelSet getModelSet()
Return the model set (ResourceSet) of the current model open in Papyrus
org.eclipse.papyrus.infra.core.resource.ModelSet ...
org.eclipse.gmf.runtime.notation.View getSelectionView()
Return the select view element (Notation metamodel)
org.eclipse.gmf.runtime.notation.View ...
org.eclipse.uml2.uml.Element getSelectionElement()
Return the UML element from the selection
org.eclipse.uml2.uml.Element ...
void createDiagram(org.eclipse.emf.ecore.EObject semanticElement, java.lang.String diagramType, java.lang.String newDiagram, boolean open)
Create a new empty diagram WARNING: For now only Package and class diagram are implemented.
| Parameter | Type | Description |
|---|---|---|
| semanticElement | org.eclipse.emf.ecore.EObject | UML or Sysml element of the diagram |
| diagramType | java.lang.String | |
| newDiagram | java.lang.String | The name of the diagram (Optional set the name to newDiagram) |
| open | boolean | True if the diagram shall be open (Optional default = false) |
void control(org.eclipse.emf.ecore.EObject semanticElement, java.lang.String fileName)
Use the control function of papyrus. That is to say that all contained element diagrams will be stored in a different resource.
| Parameter | Type | Description |
|---|---|---|
| semanticElement | org.eclipse.emf.ecore.EObject | The semantic element to control (That is to say an UML element) |
| fileName | java.lang.String | The name of the new file |
boolean eInstanceOf(org.eclipse.emf.ecore.EObject eObject, java.lang.String type)
The same as eInstanceOf of the Ecore model. However it will look into UML and Notation metamodel
| Parameter | Type | Description |
|---|---|---|
| eObject | org.eclipse.emf.ecore.EObject | |
| type | java.lang.String |
boolean ...
void save(java.lang.Object object)
The the current Papyrus editor. The object parameter is useless
| Parameter | Type | Description |
|---|---|---|
| object | java.lang.Object |