Statistics
| Revision:

root / tmp / org.txm.index.rcp / plugin.xml @ 791

History | View | Annotate | Download (8.4 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>
4
   <extension
5
         point="org.eclipse.ui.menus">
6
         
7
      <menuContribution
8
            locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.tools.doc">
9
                    <command
10
               commandId="org.txm.index.rcp.handlers.ComputeLexicon"
11
               icon="icons/lexicon.png"
12
               style="push">
13
            <visibleWhen
14
                  checkEnabled="false">
15
               <reference
16
                     definitionId="OneCorpusSelected">
17
               </reference>
18
            </visibleWhen>
19
         </command>
20
         <command
21
               commandId="org.txm.index.rcp.handlers.ComputeIndex"
22
               icon="icons/index.png"
23
               style="push">
24
            <visibleWhen
25
                  checkEnabled="false">
26
               <or>
27
                  <reference
28
                        definitionId="OnePartitionSelected">
29
                  </reference>
30
                  <reference
31
                        definitionId="OneCorpusSelected">
32
                  </reference>
33
               </or>
34
            </visibleWhen>
35
         </command>
36
      </menuContribution>
37
      <menuContribution
38
            locationURI="menu:menu.tools?after=menu.tools.separator.doc">
39
                    <command
40
               commandId="org.txm.index.rcp.handlers.ComputeLexicon"
41
               icon="icons/lexicon.png"
42
               style="push">
43
            <visibleWhen
44
                  checkEnabled="false">
45
               <reference
46
                     definitionId="OneCorpusSelected">
47
               </reference>
48
            </visibleWhen>
49
         </command>
50
         <command
51
               commandId="org.txm.index.rcp.handlers.ComputeIndex"
52
               icon="icons/index.png"
53
               style="push">
54
            <visibleWhen
55
                  checkEnabled="false">
56
               <or>
57
                  <reference
58
                        definitionId="OnePartitionSelected">
59
                  </reference>
60
                  <reference
61
                        definitionId="OneCorpusSelected">
62
                  </reference>
63
               </or>
64
            </visibleWhen>
65
         </command>
66
      </menuContribution>
67
      <menuContribution
68
            allPopups="false"
69
            locationURI="toolbar:org.txm.rcp.toolbartools">
70
                    <command
71
               commandId="org.txm.index.rcp.handlers.ComputeLexicon"
72
               icon="icons/lexicon.png"
73
               style="push">
74
            <visibleWhen
75
                  checkEnabled="false">
76
               <reference
77
                     definitionId="OneCorpusSelected">
78
               </reference>
79
            </visibleWhen>
80
         </command>
81
         <command
82
               commandId="org.txm.index.rcp.handlers.ComputeIndex"
83
               icon="icons/index.png"
84
               style="push"
85
               tooltip="%command.tooltip">
86
            <visibleWhen
87
                  checkEnabled="false">
88
               <or>
89
                  <reference
90
                        definitionId="OneCorpusSelected">
91
                  </reference>
92
               </or>
93
            </visibleWhen>
94
         </command>
95
      </menuContribution>
96
      <menuContribution
97
            allPopups="false"
98
            locationURI="toolbar:org.txm.rcp.toolbartools?after=ComputeLexicalTableFromPartition">
99
         <command
100
               commandId="org.txm.index.rcp.handlers.ComputeIndex"
101
               icon="icons/index.png"
102
               id="ComputeIndexFromPartition"
103
               style="push"
104
               tooltip="%command.tooltip">
105
            <visibleWhen
106
                  checkEnabled="false">
107
               <or>
108
                  <reference
109
                        definitionId="OnePartitionSelected">
110
                  </reference>
111
               </or>
112
            </visibleWhen>
113
         </command>
114
      </menuContribution>
115
               <menuContribution
116
            locationURI="popup:org.txm.index.rcp.editors.IndexEditor">
117
         <command
118
               commandId="org.txm.rcp.commands.link.ToConcordance"
119
               style="push">
120
         </command>
121
         <command
122
               commandId="org.txm.rcp.commands.link.IndexToCooccurrence"
123
               style="push">
124
         </command>
125
         <command
126
               commandId="org.txm.index.rcp.handlers.IndexToProgression"
127
               style="push">
128
         </command>
129
      </menuContribution>
130
      
131
   </extension>
132
   <extension
133
         point="org.eclipse.ui.editors">
134
      <editor
135
            class="org.txm.index.rcp.editors.IndexEditor"
136
            default="false"
137
            icon="icons/index.png"
138
            id="org.txm.index.rcp.editors.IndexEditor"
139
            name="%editor.name">
140
      </editor>
141
      <editor
142
            class="org.txm.index.rcp.editors.DictionnaryEditor"
143
            default="false"
144
            icon="icons/lexicon.png"
145
            id="org.txm.index.rcp.editors.DictionnaryEditor"
146
            name="Lexicon">
147
      </editor>
148
   </extension>
149
   <extension
150
         point="org.eclipse.core.runtime.adapters">
151
      <factory
152
            adaptableType="org.txm.index.core.functions.Index"
153
            class="org.txm.index.rcp.adapters.IndexAdapterFactory">
154
         <adapter
155
               type="org.eclipse.ui.model.IWorkbenchAdapter">
156
         </adapter>
157
      </factory>
158
      <factory
159
            adaptableType="org.txm.index.core.functions.Lexicon"
160
            class="org.txm.index.rcp.adapters.LexiconAdapterFactory">
161
         <adapter
162
               type="org.eclipse.ui.model.IWorkbenchAdapter">
163
         </adapter>
164
      </factory>
165
   </extension>
166
   <extension
167
         point="org.eclipse.ui.commands">
168
         
169
      <command
170
            categoryId="org.txm.rcp.category.txm"
171
            defaultHandler="org.txm.index.rcp.handlers.ComputeIndex"
172
            id="org.txm.index.rcp.handlers.ComputeIndex"
173
            name="%command.name"
174
            returnTypeId="org.txm.index.core.functions.Index">
175
      </command>
176
      <command
177
            categoryId="org.txm.rcp.category.txm"
178
            defaultHandler="org.txm.index.rcp.handlers.ComputeLexicon"
179
            id="org.txm.index.rcp.handlers.ComputeLexicon"
180
            name="Lexicon">
181
      </command>
182
                        <command
183
            defaultHandler="org.txm.synopticedition.rcp.commands.link.IndexToConcordance"
184
            id="org.txm.synopticedition.rcp.commands.link.IndexToConcordance"
185
            name="%command.label.73">
186
      </command>
187

    
188
      <command
189
            defaultHandler="org.txm.index.rcp.handlers.IndexToProgression"
190
            id="org.txm.index.rcp.handlers.IndexToProgression"
191
            name="%command.label.103">
192
      </command>
193
      <command
194
            defaultHandler="org.txm.synopticedition.rcp.commands.link.IndexToLexicalTable"
195
            id="org.txm.synopticedition.rcp.commands.link.IndexToLexicalTable"
196
            name="%command.name.43">
197
      </command>
198
      
199
      <command
200
            defaultHandler="org.txm.synopticedition.rcp.commands.link.IndexToCooccurrence"
201
            id="org.txm.synopticedition.rcp.commands.link.IndexToCooccurrence"
202
            name="%command.name.65">
203
      </command>
204
      
205
   </extension>
206
   <extension
207
         point="org.eclipse.core.expressions.definitions">
208
      <definition
209
            id="OneIndexSelected">
210
         <with
211
               variable="selection">
212
            <iterate
213
                  ifEmpty="false"
214
                  operator="and">
215
               <instanceof
216
                     value="org.txm.index.core.functions.Index">
217
               </instanceof>
218
            </iterate>
219
         </with>
220
      </definition>
221
      <definition
222
            id="OneLexiconSelected">
223
         <with
224
               variable="selection">
225
            <iterate
226
                  ifEmpty="false"
227
                  operator="and">
228
               <instanceof
229
                     value="org.txm.index.core.functions.Lexicon">
230
               </instanceof>
231
            </iterate>
232
         </with>
233
      </definition>
234
   </extension>
235
   <extension
236
         point="org.txm.statengine.r.rcp.sendtor">
237
      <sendtorcommand></sendtorcommand>
238
   </extension>
239
   <extension
240
         point="org.eclipse.ui.preferencePages">
241
      <page
242
            category="org.txm.rcp.preferences.UserPreferencePage"
243
            class="org.txm.index.rcp.preferences.IndexPreferencesPage"
244
            id="org.txm.index.rcp.preferences.IndexPreferencesPage"
245
            name="Index">
246
      </page>
247
   </extension>
248

    
249
</plugin>