Project

General

Profile

« Previous | Next » 

Revision 2f55a561

Added by Patrick Plitzner over 8 years ago

Delete unused extension point and interface

View differences:

eu.etaxonomy.taxeditor.store/schema/eu.etaxonomy.taxeditor.store.cdmViewer.exsd
21 21
      </annotation>
22 22
      <complexType>
23 23
         <sequence>
24
            <element ref="cdmViewer" minOccurs="0" maxOccurs="unbounded"/>
25 24
            <element ref="viewCommandMapping" minOccurs="0" maxOccurs="unbounded"/>
26 25
         </sequence>
27 26
         <attribute name="point" type="string" use="required">
......
51 50
      </complexType>
52 51
   </element>
53 52

  
54
   <element name="cdmViewer">
55
      <annotation>
56
         <documentation>
57
            A Cdm Viewer knows what viewer or editor can show which input.
58
         </documentation>
59
      </annotation>
60
      <complexType>
61
         <sequence>
62
         </sequence>
63
         <attribute name="class" type="string" use="required">
64
            <annotation>
65
               <documentation>
66
                  The class of the viewer.
67
               </documentation>
68
               <appInfo>
69
                  <meta.attribute kind="java" basedOn=":eu.etaxonomy.taxeditor.view.ICdmViewer"/>
70
               </appInfo>
71
            </annotation>
72
         </attribute>
73
      </complexType>
74
   </element>
75

  
76 53
   <element name="viewCommandMapping">
77 54
      <annotation>
78 55
         <documentation>
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/ICdmViewer.java
1
// $Id$
2
/**
3
* Copyright (C) 2015 EDIT
4
* European Distributed Institute of Taxonomy
5
* http://www.e-taxonomy.eu
6
*
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
10
package eu.etaxonomy.taxeditor.view;
11

  
12
import java.util.Map;
13

  
14

  
15
/**
16
 * Implementors of this interface provide a mapping of input elements to views
17
 * or editors which can display information or provide editing functionality for
18
 * the input elements.
19
 *
20
 * @author pplitzner
21
 * @date Feb 23, 2015
22
 *
23
 */
24
public interface ICdmViewer {
25

  
26
    /**
27
     * For the given input a map is returned specifying the available viewer
28
     * classes as keys and their string representation as values
29
     *
30
     * @param input
31
     *            the input for which the viewer classes should be returned
32
     * @return a map holding the viewer classes as keys and their string
33
     *         representations as values
34
     */
35
    public Map<Class<?>, String> getViewerClasses(Object input);
36

  
37
    /**
38
     * Opens the viewer defined by the given viewerClass for the given input.
39
     * @param input the input for which a viewer should be opened
40
     * @param viewerClass the qualified class name of the viewer
41
     */
42
    public void show(Object input, Class<?> viewerClass);
43

  
44
}

Also available in: Unified diff