Templates

org.topcased.modeler.templates

0.5.0

You can create new templates for a given Topcased graphical editor. This extension point is used to extend the available templates that can be used at the creation of a model in the wizard. All the templates that are added through this extension point are now available each time the user create a new diagram on the corresponding editor.

<!ELEMENT extension (template*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT template EMPTY>

<!ATTLIST template

id       CDATA #REQUIRED

name     CDATA #IMPLIED

editorId CDATA #REQUIRED

di       CDATA #IMPLIED

model    CDATA #IMPLIED>

Define a new template that will be available in the creation wizard on the corresponding editor.



This example shows how a template is defined in the Ecore editor :
 

<extension point=

"org.topcased.modeler.templates"

>

<template id=

"org.topcased.modeler.ecore.templates.ediagram"

name=

"Ecore - Modele Ecore"

editorId=

"org.topcased.modeler.ecore.editor.EcoreEditor"

model=

"templates/template1/%name%.ecore"

di=

"templates/template1/%name%.ecoredi"

/>

</extension>

None

None