Templates
Identifier:
org.topcased.modeler.templates
Since:
0.5.0
Description:
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.
Configuration Markup:
<!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.
- id - The id of the template
- name - The name of the template. This is the label that will be displayed in the creation wizard.
- editorId - The id of the Topcased editor. It is used to filter the templates that are only applicable for a given editor.
- di - The relative Path (to the modeler plugin) of the template of the diagram file.
- model - The relative Path (to the modeler plugin) of the template of the model file.
Examples:
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>
API Information:
None
Supplied Implementation:
None
Copyright (c) 2005, 2006 AIRBUS FRANCE and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html