Statistics
| Revision:

root / tmp / org.txm.referencer.rcp / plugin.xml @ 2212

History | View | Annotate | Download (5.1 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>
4
   <extension
5
         point="org.eclipse.ui.editors">
6
               <editor
7
            class="org.txm.referencer.rcp.editors.ReferencerEditor"
8
            default="false"
9
            icon="icons/functions/referencer.png"
10
            id="org.txm.referencer.rcp.editors.ReferencerEditor"
11
            name="%editor.name.14">
12
      </editor>
13
   </extension>
14
   <extension
15
         point="org.eclipse.ui.menus">
16
               <menuContribution
17
                     locationURI="menu:menu.tools?after=menu.tools.separator.misc">
18
                     <command
19
                  commandId="org.txm.referencer.rcp.handlers.ComputeReferencer"
20
                  icon="icons/functions/referencer.png"
21
                  style="push">
22
               <visibleWhen
23
                     checkEnabled="false">
24
                  <reference
25
                        definitionId="OneCorpusSelected">
26
                  </reference>
27
               </visibleWhen>
28
            </command>
29
               </menuContribution>
30
               <menuContribution
31
                     allPopups="false"
32
                     locationURI="toolbar:org.txm.rcp.toolbartools?after=org.txm.progression.rcp.handlers.ComputeProgression">
33
                  <command
34
                        commandId="org.txm.referencer.rcp.handlers.ComputeReferencer"
35
                        icon="icons/functions/referencer.png"
36
                        style="push">
37
                     <visibleWhen
38
                           checkEnabled="false">
39
                        <reference
40
                              definitionId="OneCorpusSelected">
41
                        </reference>
42
                     </visibleWhen>
43
                  </command>
44
               </menuContribution>
45
               <menuContribution
46
                     allPopups="false"
47
                     locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.progression.rcp.handlers.ComputeProgression">
48
                  <command
49
                        commandId="org.txm.referencer.rcp.handlers.ComputeReferencer"
50
                        icon="icons/functions/referencer.png"
51
                        style="push">
52
                     <visibleWhen
53
                           checkEnabled="false">
54
                        <reference
55
                              definitionId="OneCorpusSelected">
56
                        </reference>
57
                     </visibleWhen>
58
                  </command>
59
               </menuContribution>
60
   </extension>
61
   <extension
62
         point="org.eclipse.ui.commands">
63
      
64
            <command
65
                  categoryId="org.txm.rcp.category.txm"
66
                  defaultHandler="org.txm.referencer.rcp.handlers.ComputeReferencer"
67
                  id="org.txm.referencer.rcp.handlers.ComputeReferencer"
68
                  name="%command.name.44"
69
                  returnTypeId="org.txm.referencer.core.functions.Referencer">
70
      </command>
71
   </extension>
72
   <extension
73
         point="org.eclipse.core.expressions.definitions">
74
       <definition
75
                  id="OneReferencerSelected">
76
               <with
77
                     variable="selection">
78
                  <iterate
79
                        ifEmpty="false"
80
                        operator="and">
81
                     <instanceof
82
                           value="org.txm.referencer.core.functions.Referencer">
83
                     </instanceof>
84
                  </iterate>
85
               </with>
86
            </definition>
87
       <definition
88
             id="ReferencerEditorActive">
89
          <with
90
                variable="activePart">
91
             <instanceof
92
                   value="org.txm.referencer.rcp.editors.ReferencerEditor">
93
             </instanceof>
94
          </with>
95
       </definition>
96
   </extension>
97
   <extension
98
         point="org.eclipse.core.runtime.adapters">
99
       <factory
100
       adaptableType="org.txm.referencer.core.functions.Referencer"
101
       class="org.txm.referencer.rcp.adapters.ReferencerAdapterFactory">
102
    <adapter
103
          type="org.eclipse.ui.model.IWorkbenchAdapter">
104
    </adapter>
105
    <adapter
106
          type="org.eclipse.ui.model.IWorkbenchAdapter2">
107
    </adapter>
108
 </factory>
109
   </extension>
110
   <extension
111
         point="org.eclipse.ui.preferencePages">
112
            <page
113
            category="org.txm.rcp.preferences.UserPreferencePage"
114
            class="org.txm.referencer.rcp.preferences.ReferencerPreferencePage"
115
            id="org.txm.referencer.rcp.preferences.ReferencerPreferencePage"
116
            name="%page.name">
117
      </page>
118
   </extension>
119
   <extension
120
         point="org.eclipse.ui.handlers">
121
      <handler
122
            class="org.txm.referencer.rcp.handlers.SendReferencerTo"
123
            commandId="org.txm.concordance.rcp.handlers.ComputeConcordance">
124
         <activeWhen>
125
         <and>
126
            <reference
127
                  definitionId="ReferencerEditorActive">
128
            </reference>
129
            <reference
130
                  definitionId="SendSelectionContextNotActive">
131
            </reference>
132
            </and>
133
         </activeWhen>
134
      </handler>
135
   </extension>
136
</plugin>