Delete unused extension point and interface
authorPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 12 Jan 2016 17:18:23 +0000 (18:18 +0100)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Tue, 12 Jan 2016 17:18:23 +0000 (18:18 +0100)
eu.etaxonomy.taxeditor.store/schema/eu.etaxonomy.taxeditor.store.cdmViewer.exsd
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/ICdmViewer.java [deleted file]

index b233e53f9d3ec4f27bf630e383492765ef7fbdbe..7393c60f656bd949f72e45f1f7cc80d7bc31ca37 100644 (file)
@@ -21,7 +21,6 @@
       </annotation>
       <complexType>
          <sequence>
-            <element ref="cdmViewer" minOccurs="0" maxOccurs="unbounded"/>
             <element ref="viewCommandMapping" minOccurs="0" maxOccurs="unbounded"/>
          </sequence>
          <attribute name="point" type="string" use="required">
       </complexType>
    </element>
 
-   <element name="cdmViewer">
-      <annotation>
-         <documentation>
-            A Cdm Viewer knows what viewer or editor can show which input.
-         </documentation>
-      </annotation>
-      <complexType>
-         <sequence>
-         </sequence>
-         <attribute name="class" type="string" use="required">
-            <annotation>
-               <documentation>
-                  The class of the viewer.
-               </documentation>
-               <appInfo>
-                  <meta.attribute kind="java" basedOn=":eu.etaxonomy.taxeditor.view.ICdmViewer"/>
-               </appInfo>
-            </annotation>
-         </attribute>
-      </complexType>
-   </element>
-
    <element name="viewCommandMapping">
       <annotation>
          <documentation>
diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/ICdmViewer.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/ICdmViewer.java
deleted file mode 100644 (file)
index 92063cf..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-// $Id$
-/**
-* Copyright (C) 2015 EDIT
-* European Distributed Institute of Taxonomy
-* http://www.e-taxonomy.eu
-*
-* The contents of this file are subject to the Mozilla Public License Version 1.1
-* See LICENSE.TXT at the top of this package for the full license terms.
-*/
-package eu.etaxonomy.taxeditor.view;
-
-import java.util.Map;
-
-
-/**
- * Implementors of this interface provide a mapping of input elements to views
- * or editors which can display information or provide editing functionality for
- * the input elements.
- *
- * @author pplitzner
- * @date Feb 23, 2015
- *
- */
-public interface ICdmViewer {
-
-    /**
-     * For the given input a map is returned specifying the available viewer
-     * classes as keys and their string representation as values
-     *
-     * @param input
-     *            the input for which the viewer classes should be returned
-     * @return a map holding the viewer classes as keys and their string
-     *         representations as values
-     */
-    public Map<Class<?>, String> getViewerClasses(Object input);
-
-    /**
-     * Opens the viewer defined by the given viewerClass for the given input.
-     * @param input the input for which a viewer should be opened
-     * @param viewerClass the qualified class name of the viewer
-     */
-    public void show(Object input, Class<?> viewerClass);
-
-}