blob: f695678df5aa2a5a272e7df7b888484c9dfc06b9 [file] [log] [blame]
<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
<schema targetNamespace="org.eclipse.graphiti.ui" xmlns="http://www.w3.org/2001/XMLSchema">
<annotation>
<appInfo>
<meta.schema plugin="org.eclipse.graphiti.ui" id="diagramTypeProviders" name="Diagram Type Providers"/>
</appInfo>
<documentation>
Customers of Graphiti can use this extension point to register their own diagram type providers.
</documentation>
</annotation>
<element name="extension">
<annotation>
<appInfo>
<meta.element />
</appInfo>
</annotation>
<complexType>
<sequence>
<element ref="diagramTypeProvider" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="point" type="string" use="required">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="id" type="string">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="name" type="string">
<annotation>
<documentation>
</documentation>
<appInfo>
<meta.attribute translatable="true"/>
</appInfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="diagramTypeProvider">
<annotation>
<appInfo>
<meta.element labelAttribute="id"/>
</appInfo>
</annotation>
<complexType>
<sequence minOccurs="0" maxOccurs="unbounded">
<element ref="diagramType"/>
<element ref="imageProvider"/>
</sequence>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
a unique name in the Eclipse environment that will be used to identify this diagram type provider
</documentation>
<appInfo>
<meta.attribute kind="identifier"/>
</appInfo>
</annotation>
</attribute>
<attribute name="name" type="string" use="required">
<annotation>
<documentation>
a name that will be used in the editor UI for this diagram type provider
</documentation>
</annotation>
</attribute>
<attribute name="description" type="string">
<annotation>
<documentation>
an optional description that will be used in the editor UI for this diagram type provider
</documentation>
</annotation>
</attribute>
<attribute name="class" type="string" use="required">
<annotation>
<documentation>
the name of a class that implements &lt;samp&gt;org.eclipse.graphiti.dt.IDiagramTypeProvider&lt;/samp&gt;.
</documentation>
<appInfo>
<meta.attribute kind="java" basedOn="org.eclipse.graphiti.dt.AbstractDiagramTypeProvider:org.eclipse.graphiti.dt.IDiagramTypeProvider"/>
</appInfo>
</annotation>
</attribute>
<attribute name="context" type="string" use="default" value="org.eclipse.graphiti.ui.diagramEditor">
<annotation>
<documentation>
An optional org.eclipse.ui.context that will be activated on diagrams of this type. If not present, the default &lt;samp&gt;org.eclipse.graphiti.ui.diagramEditor&lt;/samp&gt; context will be used.
Note: The selected context must have the &lt;samp&gt;org.eclipse.graphiti.ui.diagramEditor&lt;/samp&gt; context as an ancestor.
</documentation>
<appInfo>
<meta.attribute kind="identifier" basedOn="org.eclipse.ui.contexts/context/@id"/>
</appInfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="diagramType">
<annotation>
<appInfo>
<meta.element labelAttribute="id"/>
</appInfo>
<documentation>
Advertises that the containing diagram type provider understands the given diagram type and is suitable for editing/viewing diagrams of that type.
</documentation>
</annotation>
<complexType>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
the diagram type identifier. This is an ID defined by the &apos;org.eclipse.graphiti.ui.diagramTypes&apos; extension point.
</documentation>
<appInfo>
<meta.attribute kind="identifier" basedOn="org.eclipse.graphiti.ui.diagramTypes/diagramType/@id"/>
</appInfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="imageProvider">
<annotation>
<appInfo>
<meta.element labelAttribute="id"/>
</appInfo>
<documentation>
Advertises that the containing diagram type provider needs the given image provider for rendering purposes.
You can also use the &lt;samp&gt;&apos;org.eclipse.graphiti.ui.imageProvider&apos;&lt;/samp&gt; extension point instead, pointing it to the &lt;samp&gt;diagramTypeProvider&lt;/samp&gt; it provides images for.
</documentation>
</annotation>
<complexType>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
the image provider identifier. This is an ID defined by the &apos;org.eclipse.graphiti.ui.imageProviders&apos; extension point.
</documentation>
<appInfo>
<meta.attribute kind="identifier" basedOn="org.eclipse.graphiti.ui.imageProviders/imageProvider/@id"/>
</appInfo>
</annotation>
</attribute>
</complexType>
</element>
<annotation>
<appInfo>
<meta.section type="examples"/>
</appInfo>
<documentation>
&lt;p&gt;
&lt;pre&gt;
&lt;extension
point=&quot;org.eclipse.graphiti.ui.diagramTypeProviders&quot;&gt;
&lt;diagramTypeProvider
class=&quot;org.eclipse.graphiti.examples.ecore.TestDiagramTypeProvider&quot;
description=&quot;This is a small Ecore test editor for the automated junit tests&quot;
context=&quot;org.eclipse.graphiti.examples.TestDiagramContext&quot;
id=&quot;org.eclipse.graphiti.examples.ecore.TestDiagramTypeProvider&quot;
name=&quot;Ecore example editor&quot;&gt;
&lt;diagramType
id=&quot;org.eclipse.graphiti.examples.ecore.EcoreDiagramType&quot;&gt;
&lt;/diagramType&gt;
&lt;imageProvider
id=&quot;org.eclipse.graphiti.examples.common.SampleImageProvider&quot;&gt;
&lt;/imageProvider&gt;
&lt;/diagramTypeProvider&gt;
&lt;/extension&gt;
&lt;/pre&gt;
&lt;/p&gt;
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="apiInfo"/>
</appInfo>
<documentation>
Instead of implementing the interface &lt;samp&gt;&quot;org.eclipse.graphiti.dt.IDiagramTypeProvider&lt;/samp&gt; directly, the customer should extend the base class &lt;samp&gt;&quot;org.eclipse.graphiti.dt.AbstractDiagramTypeProvider&quot;&lt;/samp&gt;.
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="since"/>
</appInfo>
<documentation>
0.7.0
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="copyright"/>
</appInfo>
<documentation>
Copyright (c) 2005, 2010 SAP AG.&lt;br&gt;
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 &lt;a
href=&quot;http://www.eclipse.org/legal/epl-v10.html&quot;&gt;http://www.eclipse.org/legal/epl-v10.html&lt;/a&gt;
</documentation>
</annotation>
</schema>