Statistics
| Revision:

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

History | View | Annotate | Download (5 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
 </factory>
106
   </extension>
107
   <extension
108
         point="org.eclipse.ui.preferencePages">
109
            <page
110
            category="org.txm.rcp.preferences.UserPreferencePage"
111
            class="org.txm.referencer.rcp.preferences.ReferencerPreferencePage"
112
            id="org.txm.referencer.rcp.preferences.ReferencerPreferencePage"
113
            name="Referencer">
114
      </page>
115
   </extension>
116
   <extension
117
         point="org.eclipse.ui.handlers">
118
      <handler
119
            class="org.txm.referencer.rcp.handlers.SendReferencerTo"
120
            commandId="org.txm.concordance.rcp.handlers.ComputeConcordance">
121
         <activeWhen>
122
         <and>
123
            <reference
124
                  definitionId="ReferencerEditorActive">
125
            </reference>
126
            <reference
127
                  definitionId="SendSelectionContextNotActive">
128
            </reference>
129
            </and>
130
         </activeWhen>
131
      </handler>
132
   </extension>
133
</plugin>