<!ELEMENT extension (diagramTypeProvider*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED
><!ELEMENT diagramTypeProvider (diagramType , imageProvider)*>
<!ATTLIST diagramTypeProvider
id CDATA #REQUIRED
name CDATA #REQUIRED
description CDATA #IMPLIED
class CDATA #REQUIRED
><!ELEMENT diagramType EMPTY>
<!ATTLIST diagramType
id IDREF #REQUIRED
>Advertises that the containing diagram type provider understands the given diagram type and is suitable for editing/viewing diagrams of that type.
<!ELEMENT imageProvider EMPTY>
<!ATTLIST imageProvider
id IDREF #REQUIRED
>Advertises that the containing diagram type provider needs the given image provider for rendering purposes.
<extension point="org.eclipse.graphiti.ui.diagramTypeProviders"> <diagramTypeProvider class="org.eclipse.graphiti.examples.ecore.TestDiagramTypeProvider" description="This is a small Ecore test editor for the automated junit tests" id="org.eclipse.graphiti.examples.ecore.TestDiagramTypeProvider" name="Ecore example editor"> <diagramType id="org.eclipse.graphiti.examples.ecore.EcoreDiagramType"> </diagramType> <imageProvider id="org.eclipse.graphiti.examples.common.SampleImageProvider"> </imageProvider> </diagramTypeProvider> </extension>