Diagrams

org.topcased.modeler.diagrams

0.8.0

You can easily extends an existing Topcased graphical editor by providing a new or a custom diagram. This extension point is used to extend the available diagrams that can be associated with a model object. All the diagrams added to this extension point are now available each time a valid model object is selected (from the outline or directly from the editing window).

<!ELEMENT extension (diagram*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT diagram (enableFor+)>

<!ATTLIST diagram

id            CDATA #REQUIRED

name          CDATA #REQUIRED

configuration CDATA #REQUIRED

icon          CDATA #IMPLIED

editorID      CDATA #IMPLIED>

Add a new diagram that will be available depending on the selected model object.



<!ELEMENT enableFor EMPTY>

<!ATTLIST enableFor

class           CDATA #REQUIRED

creationCommand CDATA #IMPLIED>

Define which are the valid container for a such diagram type



This example shows how to define the Diagram that can be associated with an EPackage model object in the graphical Ecore editor :
 

<extension point=

"org.topcased.modeler.diagrams"

>

<diagram configuration=

"org.topcased.modeler.ecore.ediagram.EcoreConfiguration"

id=

"org.topcased.modeler.ecore.ediagram"

name=

"Ecore Diagram"

>

<enableFor class=

"org.eclipse.emf.ecore.EPackage"

/>

</diagram>

</extension>

The configuration must implements the interface org.topcased.modeler.editor.IConfiguration. The class of the "enableFor" must implements the interface org.eclipse.emf.ecore.EObject.

None