]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.ui/schema/resourceEditorAdapter.exsd
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.ui / schema / resourceEditorAdapter.exsd
index 8d3fd55f01fa0013af0082c8bd0a9356b407e65a..5bfce96af74ffb3e42a240418480d19e4584158a 100644 (file)
-<?xml version='1.0' encoding='UTF-8'?>\r
-<!-- Schema file written by PDE -->\r
-<schema targetNamespace="org.simantics.ui" xmlns="http://www.w3.org/2001/XMLSchema">\r
-<annotation>\r
-      <appInfo>\r
-         <meta.schema plugin="org.simantics.ui" id="resourceEditorAdapter" name="Resource Editor Adapter"/>\r
-      </appInfo>\r
-      <documentation>\r
-         &lt;p&gt;\r
-This extension point allows definition of adapter classes that can open views or editors for specified input selections.\r
-&lt;/p&gt;\r
-\r
-&lt;p&gt;\r
-A priority can be associated to each adapter to provide an ordering for adapters that can handle a specified input. Default priority is 0.\r
-&lt;/p&gt;\r
-\r
-&lt;p&gt;\r
-A group can be assigned for adapters that allows shadowing based on adapter priority. Only the highest priority adapter of all adapters belonging to the same group will be selected when requesting for suitable adapters for an input. See the extension point description element descriptions for details.\r
-&lt;/p&gt;\r
-      </documentation>\r
-   </annotation>\r
-\r
-   <element name="extension">\r
-      <annotation>\r
-         <appInfo>\r
-            <meta.element />\r
-         </appInfo>\r
-      </annotation>\r
-      <complexType>\r
-         <sequence>\r
-            <element ref="group" minOccurs="0" maxOccurs="unbounded"/>\r
-            <element ref="adapter" minOccurs="0" maxOccurs="unbounded"/>\r
-            <element ref="adapterClass" minOccurs="0" maxOccurs="unbounded"/>\r
-         </sequence>\r
-         <attribute name="point" type="string" use="required">\r
-            <annotation>\r
-               <documentation>\r
-                  \r
-               </documentation>\r
-            </annotation>\r
-         </attribute>\r
-         <attribute name="id" type="string">\r
-            <annotation>\r
-               <documentation>\r
-                  \r
-               </documentation>\r
-            </annotation>\r
-         </attribute>\r
-         <attribute name="name" type="string">\r
-            <annotation>\r
-               <documentation>\r
-                  \r
-               </documentation>\r
-               <appInfo>\r
-                  <meta.attribute translatable="true"/>\r
-               </appInfo>\r
-            </annotation>\r
-         </attribute>\r
-      </complexType>\r
-   </element>\r
-\r
-   <element name="adapter">\r
-      <annotation>\r
-         <appInfo>\r
-            <meta.element labelAttribute="editorId" icon="image"/>\r
-         </appInfo>\r
-         <documentation>\r
-            This element specifies an adapter that can be used to open an eclipse editor part for a database resource of the specified type.\r
-         </documentation>\r
-      </annotation>\r
-      <complexType>\r
-         <choice minOccurs="0" maxOccurs="1">\r
-            <element ref="inContext" minOccurs="1" maxOccurs="unbounded"/>\r
-         </choice>\r
-         <attribute name="editorId" type="string" use="required">\r
-            <annotation>\r
-               <documentation>\r
-                  The ID of an IEditorPart registered through the &lt;code&gt;org.eclipse.ui.editor&lt;/code&gt; extension point.\r
-               </documentation>\r
-            </annotation>\r
-         </attribute>\r
-         <attribute name="id" type="string">\r
-            <annotation>\r
-               <documentation>\r
-                  A unique identifier for this adapter.\r
-               </documentation>\r
-            </annotation>\r
-         </attribute>\r
-         <attribute name="groupId" type="string">\r
-            <annotation>\r
-               <documentation>\r
-                  A group identifier for this adapter. Adapters that belong to the same group shadow each other based on their priority - higher priority shadows lower.\r
-               </documentation>\r
-               <appInfo>\r
-                  <meta.attribute kind="identifier" basedOn="org.simantics.ui.resourceEditorAdapter/group/@id"/>\r
-               </appInfo>\r
-            </annotation>\r
-         </attribute>\r
-         <attribute name="type_uris" type="string">\r
-            <annotation>\r
-               <documentation>\r
-                  A comma-separated list of types that are accepted by this adapter, specified as URI strings. For example to accept only diagram instances, &lt;code&gt;http://www.vtt.fi/Simantics/Diagram/1.0/Types#Diagram&lt;/code&gt; would be given as the value.\r
-               </documentation>\r
-            </annotation>\r
-         </attribute>\r
-         <attribute name="priority" type="string" use="default" value="0">\r
-            <annotation>\r
-               <documentation>\r
-                  An integer number number to describe the importance of this adapter with respect to other adapters. A larger number means higher priority. A negative priority means that the action is never selected as a default performed action even if it is the only action available for the specified input.\r
-               </documentation>\r
-            </annotation>\r
-         </attribute>\r
-         <attribute name="label" type="string">\r
-            <annotation>\r
-               <documentation>\r
-                  An optional overriding label to describe this adapter. If not specified the label is retrieved from the &lt;code&gt;IEditorPart&lt;/code&gt; referenced by the editorId attribute.\r
-               </documentation>\r
-            </annotation>\r
-         </attribute>\r
-         <attribute name="image" type="string">\r
-            <annotation>\r
-               <documentation>\r
-                  An optional overriding image to describe this adapter. If not specified the image is retrieved from the &lt;code&gt;IEditorPart&lt;/code&gt; referenced by the editorId attribute.\r
-               </documentation>\r
-               <appInfo>\r
-                  <meta.attribute kind="resource"/>\r
-               </appInfo>\r
-            </annotation>\r
-         </attribute>\r
-      </complexType>\r
-   </element>\r
-\r
-   <element name="adapterClass">\r
-      <annotation>\r
-         <appInfo>\r
-            <meta.element labelAttribute="class"/>\r
-         </appInfo>\r
-         <documentation>\r
-            This element specifies a customized adapter that can be used to perform any activity when the user selects a database resource of an allowed type. Both, the decision of which resources are allowed and what kind of action to perform on the resource, are up to the &lt;code&gt;ResourceEditorAdapter&lt;/code&gt; extension specified by the &lt;code&gt;class&lt;/code&gt; attribute.\r
-         </documentation>\r
-      </annotation>\r
-      <complexType>\r
-         <choice minOccurs="0" maxOccurs="1">\r
-            <element ref="inContext" minOccurs="1" maxOccurs="unbounded"/>\r
-         </choice>\r
-         <attribute name="id" type="string">\r
-            <annotation>\r
-               <documentation>\r
-                  A unique identifier for this adapter.\r
-               </documentation>\r
-            </annotation>\r
-         </attribute>\r
-         <attribute name="groupId" type="string">\r
-            <annotation>\r
-               <documentation>\r
-                  A group identifier for this adapter. Adapters that belong to the same group shadow each other based on their priority - higher priority shadows lower.\r
-               </documentation>\r
-               <appInfo>\r
-                  <meta.attribute kind="identifier" basedOn="org.simantics.ui.resourceEditorAdapter/group/@id"/>\r
-               </appInfo>\r
-            </annotation>\r
-         </attribute>\r
-         <attribute name="class" type="string" use="required">\r
-            <annotation>\r
-               <documentation>\r
-                  The class that implements the &lt;code&gt;org.simantics.ui.workbench.editor.EditorAdapter&lt;/code&gt; interface to perform the actions deemed necessary for a partciular adapter. Implementers must extend the AbstractResourceEditorAdapter class, otherwise the priority attribute will have no effect.\r
-               </documentation>\r
-               <appInfo>\r
-                  <meta.attribute kind="java" basedOn="org.simantics.ui.workbench.editor.AbstractResourceEditorAdapter:org.simantics.ui.workbench.editor.EditorAdapter"/>\r
-               </appInfo>\r
-            </annotation>\r
-         </attribute>\r
-         <attribute name="priority" type="string" use="default" value="0">\r
-            <annotation>\r
-               <documentation>\r
-                  An integer number number to describe the importance of this adapter with respect to other adapters. A larger number means higher priority. A negative priority means that the action is never selected as a default performed action even if it is the only action available for the specified input. This priority value will only have an effect if the class extends &lt;code&gt;org.simantics.proconf.ui.workbench.editor.AbstractResourceEditorAdapter&lt;/code&gt;.\r
-               </documentation>\r
-            </annotation>\r
-         </attribute>\r
-      </complexType>\r
-   </element>\r
-\r
-   <element name="group">\r
-      <complexType>\r
-         <attribute name="id" type="string" use="required">\r
-            <annotation>\r
-               <documentation>\r
-                  \r
-               </documentation>\r
-            </annotation>\r
-         </attribute>\r
-      </complexType>\r
-   </element>\r
-\r
-   <element name="inContext">\r
-      <annotation>\r
-         <documentation>\r
-            This element specifies a reference to a context (contributed via org.eclipse.ui.contexts).\r
-         </documentation>\r
-      </annotation>\r
-      <complexType>\r
-         <attribute name="id" type="string" use="required">\r
-            <annotation>\r
-               <documentation>\r
-                  A reference to the ID of a context extension in the org.eclipse.ui.contexts extension point.\r
-               </documentation>\r
-               <appInfo>\r
-                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.contexts/context/@id"/>\r
-               </appInfo>\r
-            </annotation>\r
-         </attribute>\r
-      </complexType>\r
-   </element>\r
-\r
-\r
-   <annotation>\r
-      <appInfo>\r
-         <meta.section type="examples"/>\r
-      </appInfo>\r
-      <documentation>\r
-         &lt;pre&gt;\r
-   &lt;extension\r
-         point=&quot;org.simantics.ui.resourceEditorAdapter&quot;&gt;\r
-      &lt;!-- A fully declarative editor adapter definition for graph resources. Editor is opened by SimpleEditorAdapter. --&gt;\r
-      &lt;adapter\r
-            editorId=&quot;org.simantics.example.diagramEditor&quot;\r
-            id=&quot;org.simantics.example.diagramEditor&quot;\r
-            priority=&quot;100&quot;\r
-            groupId=&quot;org.simantics.example.group&quot;\r
-            type_uris=&quot;http://www.simantics.org/Simantics/Diagram/2.0#Diagram&quot;&gt;\r
-         &lt;inContext\r
-               id=&quot;org.simantics.example.context&quot;&gt;\r
-         &lt;/inContext&gt;\r
-      &lt;/adapter&gt;\r
-      &lt;!-- A programmatic editor adapter definition, editor is opened by adapter class. --&gt;\r
-      &lt;adapterClass\r
-            class=&quot;org.simantics.example.MyEditorAdapter&quot;\r
-            id=&quot;org.simantics.example.myEditorAdapter&quot;\r
-            groupId=&quot;org.simantics.example.group&quot;\r
-            priority=&quot;50&quot;&gt;\r
-      &lt;/adapterClass&gt;\r
-   &lt;/extension&gt;\r
-&lt;/pre&gt;\r
-      </documentation>\r
-   </annotation>\r
-\r
-\r
-   <annotation>\r
-      <appInfo>\r
-         <meta.section type="implementation"/>\r
-      </appInfo>\r
-      <documentation>\r
-         See &lt;code&gt;org.simantics.ui.workbench.editor.EditorRegistry&lt;/code&gt; for the front-end to this extension point.\r
-      </documentation>\r
-   </annotation>\r
-\r
-\r
-</schema>\r
+<?xml version='1.0' encoding='UTF-8'?>
+<!-- Schema file written by PDE -->
+<schema targetNamespace="org.simantics.ui" xmlns="http://www.w3.org/2001/XMLSchema">
+<annotation>
+      <appInfo>
+         <meta.schema plugin="org.simantics.ui" id="resourceEditorAdapter" name="Resource Editor Adapter"/>
+      </appInfo>
+      <documentation>
+         &lt;p&gt;
+This extension point allows definition of adapter classes that can open views or editors for specified input selections.
+&lt;/p&gt;
+
+&lt;p&gt;
+A priority can be associated to each adapter to provide an ordering for adapters that can handle a specified input. Default priority is 0.
+&lt;/p&gt;
+
+&lt;p&gt;
+A group can be assigned for adapters that allows shadowing based on adapter priority. Only the highest priority adapter of all adapters belonging to the same group will be selected when requesting for suitable adapters for an input. See the extension point description element descriptions for details.
+&lt;/p&gt;
+      </documentation>
+   </annotation>
+
+   <element name="extension">
+      <annotation>
+         <appInfo>
+            <meta.element />
+         </appInfo>
+      </annotation>
+      <complexType>
+         <sequence>
+            <element ref="group" minOccurs="0" maxOccurs="unbounded"/>
+            <element ref="adapter" minOccurs="0" maxOccurs="unbounded"/>
+            <element ref="adapterClass" 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="adapter">
+      <annotation>
+         <appInfo>
+            <meta.element labelAttribute="editorId" icon="image"/>
+         </appInfo>
+         <documentation>
+            This element specifies an adapter that can be used to open an eclipse editor part for a database resource of the specified type.
+         </documentation>
+      </annotation>
+      <complexType>
+         <choice minOccurs="0" maxOccurs="1">
+            <element ref="inContext" minOccurs="1" maxOccurs="unbounded"/>
+         </choice>
+         <attribute name="editorId" type="string" use="required">
+            <annotation>
+               <documentation>
+                  The ID of an IEditorPart registered through the &lt;code&gt;org.eclipse.ui.editor&lt;/code&gt; extension point.
+               </documentation>
+            </annotation>
+         </attribute>
+         <attribute name="id" type="string">
+            <annotation>
+               <documentation>
+                  A unique identifier for this adapter.
+               </documentation>
+            </annotation>
+         </attribute>
+         <attribute name="groupId" type="string">
+            <annotation>
+               <documentation>
+                  A group identifier for this adapter. Adapters that belong to the same group shadow each other based on their priority - higher priority shadows lower.
+               </documentation>
+               <appInfo>
+                  <meta.attribute kind="identifier" basedOn="org.simantics.ui.resourceEditorAdapter/group/@id"/>
+               </appInfo>
+            </annotation>
+         </attribute>
+         <attribute name="type_uris" type="string">
+            <annotation>
+               <documentation>
+                  A comma-separated list of types that are accepted by this adapter, specified as URI strings. For example to accept only diagram instances, &lt;code&gt;http://www.vtt.fi/Simantics/Diagram/1.0/Types#Diagram&lt;/code&gt; would be given as the value.
+               </documentation>
+            </annotation>
+         </attribute>
+         <attribute name="priority" type="string" use="default" value="0">
+            <annotation>
+               <documentation>
+                  An integer number number to describe the importance of this adapter with respect to other adapters. A larger number means higher priority. A negative priority means that the action is never selected as a default performed action even if it is the only action available for the specified input.
+               </documentation>
+            </annotation>
+         </attribute>
+         <attribute name="label" type="string">
+            <annotation>
+               <documentation>
+                  An optional overriding label to describe this adapter. If not specified the label is retrieved from the &lt;code&gt;IEditorPart&lt;/code&gt; referenced by the editorId attribute.
+               </documentation>
+            </annotation>
+         </attribute>
+         <attribute name="image" type="string">
+            <annotation>
+               <documentation>
+                  An optional overriding image to describe this adapter. If not specified the image is retrieved from the &lt;code&gt;IEditorPart&lt;/code&gt; referenced by the editorId attribute.
+               </documentation>
+               <appInfo>
+                  <meta.attribute kind="resource"/>
+               </appInfo>
+            </annotation>
+         </attribute>
+      </complexType>
+   </element>
+
+   <element name="adapterClass">
+      <annotation>
+         <appInfo>
+            <meta.element labelAttribute="class"/>
+         </appInfo>
+         <documentation>
+            This element specifies a customized adapter that can be used to perform any activity when the user selects a database resource of an allowed type. Both, the decision of which resources are allowed and what kind of action to perform on the resource, are up to the &lt;code&gt;ResourceEditorAdapter&lt;/code&gt; extension specified by the &lt;code&gt;class&lt;/code&gt; attribute.
+         </documentation>
+      </annotation>
+      <complexType>
+         <choice minOccurs="0" maxOccurs="1">
+            <element ref="inContext" minOccurs="1" maxOccurs="unbounded"/>
+         </choice>
+         <attribute name="id" type="string">
+            <annotation>
+               <documentation>
+                  A unique identifier for this adapter.
+               </documentation>
+            </annotation>
+         </attribute>
+         <attribute name="groupId" type="string">
+            <annotation>
+               <documentation>
+                  A group identifier for this adapter. Adapters that belong to the same group shadow each other based on their priority - higher priority shadows lower.
+               </documentation>
+               <appInfo>
+                  <meta.attribute kind="identifier" basedOn="org.simantics.ui.resourceEditorAdapter/group/@id"/>
+               </appInfo>
+            </annotation>
+         </attribute>
+         <attribute name="class" type="string" use="required">
+            <annotation>
+               <documentation>
+                  The class that implements the &lt;code&gt;org.simantics.ui.workbench.editor.EditorAdapter&lt;/code&gt; interface to perform the actions deemed necessary for a partciular adapter. Implementers must extend the AbstractResourceEditorAdapter class, otherwise the priority attribute will have no effect.
+               </documentation>
+               <appInfo>
+                  <meta.attribute kind="java" basedOn="org.simantics.ui.workbench.editor.AbstractResourceEditorAdapter:org.simantics.ui.workbench.editor.EditorAdapter"/>
+               </appInfo>
+            </annotation>
+         </attribute>
+         <attribute name="priority" type="string" use="default" value="0">
+            <annotation>
+               <documentation>
+                  An integer number number to describe the importance of this adapter with respect to other adapters. A larger number means higher priority. A negative priority means that the action is never selected as a default performed action even if it is the only action available for the specified input. This priority value will only have an effect if the class extends &lt;code&gt;org.simantics.proconf.ui.workbench.editor.AbstractResourceEditorAdapter&lt;/code&gt;.
+               </documentation>
+            </annotation>
+         </attribute>
+      </complexType>
+   </element>
+
+   <element name="group">
+      <complexType>
+         <attribute name="id" type="string" use="required">
+            <annotation>
+               <documentation>
+                  
+               </documentation>
+            </annotation>
+         </attribute>
+      </complexType>
+   </element>
+
+   <element name="inContext">
+      <annotation>
+         <documentation>
+            This element specifies a reference to a context (contributed via org.eclipse.ui.contexts).
+         </documentation>
+      </annotation>
+      <complexType>
+         <attribute name="id" type="string" use="required">
+            <annotation>
+               <documentation>
+                  A reference to the ID of a context extension in the org.eclipse.ui.contexts extension point.
+               </documentation>
+               <appInfo>
+                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.contexts/context/@id"/>
+               </appInfo>
+            </annotation>
+         </attribute>
+      </complexType>
+   </element>
+
+
+   <annotation>
+      <appInfo>
+         <meta.section type="examples"/>
+      </appInfo>
+      <documentation>
+         &lt;pre&gt;
+   &lt;extension
+         point=&quot;org.simantics.ui.resourceEditorAdapter&quot;&gt;
+      &lt;!-- A fully declarative editor adapter definition for graph resources. Editor is opened by SimpleEditorAdapter. --&gt;
+      &lt;adapter
+            editorId=&quot;org.simantics.example.diagramEditor&quot;
+            id=&quot;org.simantics.example.diagramEditor&quot;
+            priority=&quot;100&quot;
+            groupId=&quot;org.simantics.example.group&quot;
+            type_uris=&quot;http://www.simantics.org/Simantics/Diagram/2.0#Diagram&quot;&gt;
+         &lt;inContext
+               id=&quot;org.simantics.example.context&quot;&gt;
+         &lt;/inContext&gt;
+      &lt;/adapter&gt;
+      &lt;!-- A programmatic editor adapter definition, editor is opened by adapter class. --&gt;
+      &lt;adapterClass
+            class=&quot;org.simantics.example.MyEditorAdapter&quot;
+            id=&quot;org.simantics.example.myEditorAdapter&quot;
+            groupId=&quot;org.simantics.example.group&quot;
+            priority=&quot;50&quot;&gt;
+      &lt;/adapterClass&gt;
+   &lt;/extension&gt;
+&lt;/pre&gt;
+      </documentation>
+   </annotation>
+
+
+   <annotation>
+      <appInfo>
+         <meta.section type="implementation"/>
+      </appInfo>
+      <documentation>
+         See &lt;code&gt;org.simantics.ui.workbench.editor.EditorRegistry&lt;/code&gt; for the front-end to this extension point.
+      </documentation>
+   </annotation>
+
+
+</schema>