root / tmp / org.txm.index.rcp / plugin.xml @ 859
History | View | Annotate | Download (11.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.DictionnaryEditor"> |
117 |
<command
|
118 |
commandId="org.txm.index.rcp.handlers.ComputeIndex" |
119 |
icon="icons/index.png" |
120 |
label="%command.name.2" |
121 |
style="push"> |
122 |
</command>
|
123 |
</menuContribution>
|
124 |
<menuContribution
|
125 |
locationURI="popup:org.txm.internalview.rcp.editors.InternalViewEditor"> |
126 |
<command
|
127 |
commandId="org.txm.index.rcp.handlers.ComputeIndex" |
128 |
icon="icons/index.png" |
129 |
label="%command.name.2" |
130 |
style="push"> |
131 |
</command>
|
132 |
</menuContribution>
|
133 |
<menuContribution
|
134 |
locationURI="popup:ChartEditorContextMenuItemArea.ItemMenu"> |
135 |
<command
|
136 |
commandId="org.txm.index.rcp.handlers.ComputeIndex" |
137 |
icon="icons/index.png" |
138 |
label="%command.name.2" |
139 |
style="push"> |
140 |
<visibleWhen
|
141 |
checkEnabled="false"> |
142 |
<reference
|
143 |
definitionId="ProgressionEditorActive"> |
144 |
</reference>
|
145 |
</visibleWhen>
|
146 |
</command>
|
147 |
</menuContribution>
|
148 |
|
149 |
</extension>
|
150 |
<extension
|
151 |
point="org.eclipse.ui.editors"> |
152 |
<editor
|
153 |
class="org.txm.index.rcp.editors.IndexEditor" |
154 |
default="false" |
155 |
icon="icons/index.png" |
156 |
id="org.txm.index.rcp.editors.IndexEditor" |
157 |
name="%editor.name"> |
158 |
</editor>
|
159 |
<editor
|
160 |
class="org.txm.index.rcp.editors.DictionnaryEditor" |
161 |
default="false" |
162 |
icon="icons/lexicon.png" |
163 |
id="org.txm.index.rcp.editors.DictionnaryEditor" |
164 |
name="%editor.name.0"> |
165 |
</editor>
|
166 |
</extension>
|
167 |
<extension
|
168 |
point="org.eclipse.core.runtime.adapters"> |
169 |
<factory
|
170 |
adaptableType="org.txm.index.core.functions.Index" |
171 |
class="org.txm.index.rcp.adapters.IndexAdapterFactory"> |
172 |
<adapter
|
173 |
type="org.eclipse.ui.model.IWorkbenchAdapter"> |
174 |
</adapter>
|
175 |
</factory>
|
176 |
<factory
|
177 |
adaptableType="org.txm.index.core.functions.Lexicon" |
178 |
class="org.txm.index.rcp.adapters.LexiconAdapterFactory"> |
179 |
<adapter
|
180 |
type="org.eclipse.ui.model.IWorkbenchAdapter"> |
181 |
</adapter>
|
182 |
</factory>
|
183 |
</extension>
|
184 |
<extension
|
185 |
point="org.eclipse.ui.commands"> |
186 |
|
187 |
<command
|
188 |
categoryId="org.txm.rcp.category.txm" |
189 |
defaultHandler="org.txm.index.rcp.handlers.ComputeIndex" |
190 |
id="org.txm.index.rcp.handlers.ComputeIndex" |
191 |
name="%command.name" |
192 |
returnTypeId="org.txm.index.core.functions.Index"> |
193 |
</command>
|
194 |
<command
|
195 |
categoryId="org.txm.rcp.category.txm" |
196 |
defaultHandler="org.txm.index.rcp.handlers.ComputeLexicon" |
197 |
id="org.txm.index.rcp.handlers.ComputeLexicon" |
198 |
name="%command.name.0"> |
199 |
</command>
|
200 |
|
201 |
<command
|
202 |
defaultHandler="org.txm.synopticedition.rcp.commands.link.IndexToLexicalTable" |
203 |
id="org.txm.synopticedition.rcp.commands.link.IndexToLexicalTable" |
204 |
name="%command.name.43"> |
205 |
</command>
|
206 |
|
207 |
|
208 |
</extension>
|
209 |
<extension
|
210 |
point="org.eclipse.core.expressions.definitions"> |
211 |
<definition
|
212 |
id="OneIndexSelected"> |
213 |
<with
|
214 |
variable="selection"> |
215 |
<iterate
|
216 |
ifEmpty="false" |
217 |
operator="and"> |
218 |
<instanceof
|
219 |
value="org.txm.index.core.functions.Index"> |
220 |
</instanceof>
|
221 |
</iterate>
|
222 |
</with>
|
223 |
</definition>
|
224 |
<definition
|
225 |
id="OneLexiconSelected"> |
226 |
<with
|
227 |
variable="selection"> |
228 |
<iterate
|
229 |
ifEmpty="false" |
230 |
operator="and"> |
231 |
<instanceof
|
232 |
value="org.txm.index.core.functions.Lexicon"> |
233 |
</instanceof>
|
234 |
</iterate>
|
235 |
</with>
|
236 |
</definition>
|
237 |
<definition
|
238 |
id="IndexEditorActive"> |
239 |
<with
|
240 |
variable="activePart"> |
241 |
<instanceof
|
242 |
value="org.txm.index.rcp.editors.IndexEditor"> |
243 |
</instanceof>
|
244 |
</with>
|
245 |
</definition>
|
246 |
<definition
|
247 |
id="LexiconEditorActive"> |
248 |
<with
|
249 |
variable="activePart"> |
250 |
<instanceof
|
251 |
value="org.txm.index.rcp.editors.DictionnaryEditor"> |
252 |
</instanceof>
|
253 |
</with>
|
254 |
</definition>
|
255 |
</extension>
|
256 |
<extension
|
257 |
point="org.txm.statengine.r.rcp.sendtor"> |
258 |
<sendtorcommand></sendtorcommand> |
259 |
</extension>
|
260 |
<extension
|
261 |
point="org.eclipse.ui.preferencePages"> |
262 |
<page
|
263 |
category="org.txm.rcp.preferences.UserPreferencePage" |
264 |
class="org.txm.index.rcp.preferences.IndexPreferencesPage" |
265 |
id="org.txm.index.rcp.preferences.IndexPreferencesPage" |
266 |
name="%page.name"> |
267 |
</page>
|
268 |
</extension>
|
269 |
<extension
|
270 |
point="org.eclipse.ui.handlers"> |
271 |
<handler
|
272 |
class="org.txm.index.rcp.handlers.SendIndexTo" |
273 |
commandId="org.txm.progression.rcp.handlers.ComputeProgression"> |
274 |
<activeWhen>
|
275 |
<and>
|
276 |
<or>
|
277 |
<reference
|
278 |
definitionId="IndexEditorActive"> |
279 |
</reference>
|
280 |
<reference
|
281 |
definitionId="LexiconEditorActive"> |
282 |
</reference>
|
283 |
|
284 |
</or>
|
285 |
<reference
|
286 |
definitionId="SendSelectionContextNotActive"> |
287 |
</reference>
|
288 |
</and>
|
289 |
</activeWhen>
|
290 |
</handler>
|
291 |
<handler
|
292 |
class="org.txm.index.rcp.handlers.SendIndexTo" |
293 |
commandId="org.txm.concordance.rcp.handlers.ComputeConcordance"> |
294 |
<activeWhen>
|
295 |
<and>
|
296 |
<or>
|
297 |
<reference
|
298 |
definitionId="IndexEditorActive"> |
299 |
</reference>
|
300 |
<reference
|
301 |
definitionId="LexiconEditorActive"> |
302 |
</reference>
|
303 |
</or>
|
304 |
|
305 |
|
306 |
<reference
|
307 |
definitionId="SendSelectionContextNotActive"> |
308 |
</reference>
|
309 |
|
310 |
</and>
|
311 |
</activeWhen>
|
312 |
</handler>
|
313 |
<handler
|
314 |
class="org.txm.index.rcp.handlers.SendIndexTo" |
315 |
commandId="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences"> |
316 |
<activeWhen>
|
317 |
<and>
|
318 |
<reference
|
319 |
definitionId="IndexEditorActive"> |
320 |
</reference>
|
321 |
<reference
|
322 |
definitionId="SendSelectionContextNotActive"> |
323 |
</reference>
|
324 |
</and>
|
325 |
</activeWhen>
|
326 |
</handler>
|
327 |
<handler
|
328 |
class="org.txm.index.rcp.handlers.SendIndexTo" |
329 |
commandId="org.txm.index.rcp.handlers.ComputeIndex"> |
330 |
<activeWhen>
|
331 |
<and>
|
332 |
<reference
|
333 |
definitionId="LexiconEditorActive"> |
334 |
</reference>
|
335 |
<reference
|
336 |
definitionId="SendSelectionContextNotActive"> |
337 |
</reference>
|
338 |
</and>
|
339 |
</activeWhen>
|
340 |
</handler>
|
341 |
</extension>
|
342 |
|
343 |
</plugin>
|