Updated version in pom / project files to taxeditor version : 4.1.1 and cdmlib versio...
[taxeditor.git] / eu.etaxonomy.taxeditor.store / schema / eu.etaxonomy.taxeditor.store.cdmViewer.exsd
index b7f2964c8c89a9a037625228d3d4dc8afa10edd0..7393c60f656bd949f72e45f1f7cc80d7bc31ca37 100644 (file)
          <appInfo>
             <meta.element />
          </appInfo>
+         <documentation>
+            Extensions must provide an ICdmViewer which maps input elements to viewers which are able to display information for them.
+         </documentation>
       </annotation>
       <complexType>
-         <sequence minOccurs="1" maxOccurs="unbounded">
-            <element ref="cdmViewer"/>
+         <sequence>
+            <element ref="viewCommandMapping" minOccurs="0" maxOccurs="unbounded"/>
          </sequence>
          <attribute name="point" type="string" use="required">
             <annotation>
       </complexType>
    </element>
 
-   <element name="cdmViewer">
+   <element name="viewCommandMapping">
       <annotation>
          <documentation>
-            A Cdm Viewer knows what viewer or editor can show which input.
+            Maps a viewing class, like editors or views, to a command which opens it.
          </documentation>
       </annotation>
       <complexType>
-         <sequence>
-            <element ref="input"/>
-         </sequence>
-         <attribute name="class" type="string" use="required">
+         <attribute name="commandId" type="string" use="required">
             <annotation>
                <documentation>
-                  The class of the viewer.
+                  The command which opens the viewer to show the selected object
                </documentation>
                <appInfo>
-                  <meta.attribute kind="java" basedOn=":eu.etaxonomy.taxeditor.view.ICdmViewer"/>
+                  <meta.attribute kind="identifier" basedOn="org.eclipse.ui.commands/command/@id"/>
                </appInfo>
             </annotation>
          </attribute>
-      </complexType>
-   </element>
-
-   <element name="input">
-      <annotation>
-         <documentation>
-            The input element which can be shown by the cdmViewer.
-         </documentation>
-      </annotation>
-      <complexType>
-         <sequence>
-            <element ref="part"/>
-         </sequence>
-         <attribute name="class" type="string" use="required">
+         <attribute name="viewerName" type="string">
             <annotation>
                <documentation>
-                  The class of the input element.
+                  The name of the viewer which shows the selected element
                </documentation>
-               <appInfo>
-                  <meta.attribute kind="java"/>
-               </appInfo>
             </annotation>
          </attribute>
-      </complexType>
-   </element>
-
-   <element name="part">
-      <annotation>
-         <documentation>
-            The part which can be opened for the given input.
-         </documentation>
-      </annotation>
-      <complexType>
-         <attribute name="class" type="string" use="required">
+         <attribute name="selection" type="string" use="required">
             <annotation>
                <documentation>
-                  The class of the part.
+                  The class of the selected element
                </documentation>
                <appInfo>
                   <meta.attribute kind="java"/>
                </appInfo>
             </annotation>
          </attribute>
-         <attribute name="name" type="string">
-            <annotation>
-               <documentation>
-                  The name of the part.
-               </documentation>
-            </annotation>
-         </attribute>
       </complexType>
    </element>