# Diagram Types

###### Identifier:

org.eclipse.graphiti.ui.diagramTypes

###### Since:

0.7.0

###### Description:

Customers of Graphiti can use this extension point to register their own diagram types.

###### Configuration Markup:

<!ELEMENT extension (diagramType*)>

<!ATTLIST extension

point CDATA #REQUIRED

id CDATA #IMPLIED

name CDATA #IMPLIED

>

<!ELEMENT diagramType EMPTY>

<!ATTLIST diagramType

id CDATA #REQUIRED

type CDATA #REQUIRED

name CDATA #REQUIRED

description CDATA #IMPLIED

>

- id - a unique name in the NWDS environment that will be used to identify this diagram type
- type - a unique type (e.g. "GalaxyTriggernetDiagram", "sample.mof"). Stored diagrams must always contain a valid type.
- name - the name of this diagram type that will be used in the UI
- description - an optional description of this diagram type that will be used in the UI

###### Examples:

       <extension
             point="org.eclipse.graphiti.ui.diagramTypes">
          <diagramType
                description="diagram type for demo examples"
                id="org.eclipse.graphiti.examples.ecore.EcoreDiagramType"
                name="Sample Ecore DT"
                type="sample.ecore">
          </diagramType>
       </extension>