Updated version in pom / project files to taxeditor version : 4.2.0-SNAPSHOT and...
[taxeditor.git] / eu.etaxonomy.taxeditor.store / schema / eu.etaxonomy.taxeditor.store.cdmViewer.exsd
index 42791ec3b89d6c6967cb86041814a7d482ff7619..7393c60f656bd949f72e45f1f7cc80d7bc31ca37 100644 (file)
@@ -21,7 +21,7 @@
       </annotation>
       <complexType>
          <sequence>
-            <element ref="cdmViewer" minOccurs="1" maxOccurs="unbounded"/>
+            <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>
-         </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>
+         <attribute name="viewerName" type="string">
+            <annotation>
+               <documentation>
+                  The name of the viewer which shows the selected element
+               </documentation>
+            </annotation>
+         </attribute>
+         <attribute name="selection" type="string" use="required">
+            <annotation>
+               <documentation>
+                  The class of the selected element
+               </documentation>
+               <appInfo>
+                  <meta.attribute kind="java"/>
                </appInfo>
             </annotation>
          </attribute>