Statistiques
| Révision :

root / TXM / trunk / bundles / org.txm.annotation.kr.rcp / plugin.xml @ 4027

Historique | Voir | Annoter | Télécharger (14,44 ko)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>  
4
   <extension
5
         point="org.eclipse.ui.commands">
6
               <command
7
            categoryId="org.txm.rcp.category.txm"
8
            defaultHandler="org.txm.rcp.commands.workspace.RecodeCorpus"
9
            id="org.txm.rcp.commands.workspace.RecodeCorpus"
10
            name="%command.name">
11
      </command>
12
            <command
13
            categoryId="org.txm.rcp.category.txm"
14
            defaultHandler="org.txm.annotation.kr.rcp.commands.SaveAnnotations"
15
            id="org.txm.rcp.commands.annotation.SaveAnnotations"
16
            name="%command.name.0">
17
      </command>
18
            <command
19
            defaultHandler="org.txm.annotation.kr.rcp.commands.krview.OpenKRView"
20
            id="org.txm.rcp.commands.krview.OpenKRView"
21
            name="%command.name.1">
22
      </command>
23
      <command
24
            defaultHandler="org.txm.annotation.kr.rcp.commands.krview.Copy"
25
            id="org.txm.rcp.commands.krview.Copy"
26
            name="%command.name.2">
27
      </command>
28
      <command
29
            defaultHandler="org.txm.annotation.kr.rcp.commands.krview.Reload"
30
            id="org.txm.rcp.commands.krview.Reload"
31
            name="%command.name.3">
32
      </command>
33
      <command
34
            defaultHandler="org.txm.annotation.kr.rcp.commands.krview.Informations"
35
            id="org.txm.rcp.commands.krview.Informations"
36
            name="%command.name.4">
37
      </command>
38
      <command
39
            defaultHandler="org.txm.annotation.kr.rcp.commands.krview.Delete"
40
            id="org.txm.rcp.commands.krview.Delete"
41
            name="%command.name.5">
42
      </command>
43
      <command
44
            defaultHandler="org.txm.annotation.kr.rcp.commands.krview.Add"
45
            id="org.txm.rcp.commands.krview.Add"
46
            name="%command.name.6">
47
      </command>
48
      <command
49
            defaultHandler="org.txm.annotation.kr.rcp.commands.ExportStandoff"
50
            id="org.txm.rcp.commands.annotation.ExportStandoff"
51
            name="%command.name.7">
52
      </command>
53
      <command
54
            categoryId="org.txm.rcp.category.txm"
55
            defaultHandler="org.txm.annotation.kr.rcp.commands.SaveAnnotationsAndUpdateCorpus"
56
            id="org.txm.annotation.kr.rcp.commands.SaveAnnotationsAndUpdateCorpus"
57
            name="%command.label.111">
58
      </command>
59
      <command
60
            defaultHandler="org.txm.annotation.kr.rcp.commands.ExportTable"
61
            id="org.txm.annotation.kr.rcp.commands.ExportTable"
62
            name="%command.name.8">
63
      </command>
64
      <command
65
            defaultHandler="org.txm.annotation.kr.rcp.commands.ImportTable"
66
            id="org.txm.annotation.kr.rcp.commands.ImportTable"
67
            name="%command.name.9">
68
      </command>
69
   </extension>
70
  <extension
71
        point="org.eclipse.ui.preferencePages">
72
     <page
73
           category="org.txm.annotation.rcp.preferences.AnnotationPreferencePage"
74
           class="org.txm.annotation.kr.rcp.preferences.KRAnnotationPreferencePage"
75
           id="org.txm.annotation.kr.rcp.preferences.KRAnnotationPreferencePage"
76
           name="%page.name.0">
77
     </page>
78
  </extension>
79
     <extension
80
         point="org.eclipse.ui.views">
81
      <view
82
            category="org.txm.rcp"
83
            class="org.txm.annotation.kr.rcp.views.knowledgerepositories.KRView"
84
            id="org.txm.annotation.kr.rcp.views.knowledgerepositories.KRView"
85
            name="%view.name"
86
            restorable="true">
87
      </view>
88
   </extension>
89
  <extension
90
         point="org.eclipse.ui.bindings">
91
      <key
92
            commandId="org.txm.rcp.commands.krview.Add"
93
            contextId="org.txm.rcp.annotation.krview"
94
            schemeId="org.txm.rcp.scheme"
95
            sequence="Ctrl+A">
96
      </key>
97
      <key
98
            commandId="org.txm.rcp.commands.krview.Reload"
99
            contextId="org.txm.rcp.annotation.krview"
100
            schemeId="org.txm.rcp.scheme"
101
            sequence="Ctrl+R">
102
      </key>
103
      <key
104
            commandId="org.txm.rcp.commands.krview.Informations"
105
            contextId="org.txm.rcp.annotation.krview"
106
            schemeId="org.txm.rcp.scheme"
107
            sequence="Ctrl+I">
108
      </key>
109
      <key
110
            commandId="org.txm.rcp.commands.krview.Copy"
111
            contextId="org.txm.rcp.annotation.krview"
112
            schemeId="org.txm.rcp.scheme"
113
            sequence="Ctrl+C">
114
      </key>
115
      <key
116
            commandId="org.txm.rcp.commands.krview.Delete"
117
            contextId="org.txm.rcp.annotation.krview"
118
            schemeId="org.txm.rcp.scheme"
119
            sequence="Ctrl+D">
120
      </key>
121
   </extension>
122
  <extension
123
        point="org.eclipse.ui.menus">
124
     <menuContribution
125
           allPopups="false"
126
           locationURI="menu:menu.display.views?before=menu.display.views.separator">
127
           <command
128
                     commandId="org.txm.rcp.commands.krview.OpenKRView"
129
                     label="%command.label"
130
                     style="push">
131
               </command>
132
     </menuContribution>
133
     <menuContribution
134
            locationURI="popup:org.txm.annotation.kr.rcp.views.knowledgerepositories.KRView">
135
         <command
136
               commandId="org.txm.rcp.commands.krview.Copy"
137
               style="push"
138
               tooltip="%command.tooltip.89">
139
         </command>
140
         <command
141
               commandId="org.txm.rcp.commands.krview.Reload"
142
               style="push"
143
               tooltip="%command.tooltip.90">
144
            <visibleWhen
145
                  checkEnabled="false">
146
               <reference
147
                     definitionId="OneKRSelected">
148
               </reference>
149
            </visibleWhen>
150
         </command>
151
         <command
152
               commandId="org.txm.rcp.commands.krview.Informations"
153
               style="push"
154
               tooltip="%command.tooltip.93">
155
         </command>
156
         <command
157
               commandId="org.txm.rcp.commands.krview.Add"
158
               style="push"
159
               tooltip="%command.tooltip.94">
160
            <visibleWhen
161
                  checkEnabled="false">
162
               <or>
163
                  <reference
164
                        definitionId="OneLocalKRSelected">
165
                  </reference>
166
                  <reference
167
                        definitionId="OneAnnotationTypeSelected">
168
                  </reference>
169
               </or>
170
            </visibleWhen>
171
         </command>
172
         <command
173
               commandId="org.txm.rcp.commands.krview.Delete"
174
               style="push"
175
               tooltip="%command.tooltip.95">
176
            <visibleWhen
177
                  checkEnabled="false">
178
               <or>
179
                  <reference
180
                        definitionId="OneAnnotationTypeSelected">
181
                  </reference>
182
                  <reference
183
                        definitionId="OneTypedValueSelected">
184
                  </reference>
185
               </or>
186
            </visibleWhen>
187
         </command>
188
      </menuContribution>
189
     <menuContribution
190
           allPopups="false"
191
           locationURI="menu:menu.file.export.properties">
192
        <command
193
              commandId="org.txm.rcp.commands.annotation.ExportStandoff"
194
              id="menu.file.export.exporttei"
195
              label="%command.label.0"
196
              style="push">
197
           <visibleWhen
198
                 checkEnabled="false">
199
              <reference
200
                    definitionId="OneMainCorpusSelected">
201
              </reference>
202
           </visibleWhen>
203
        </command>
204
     </menuContribution>
205
     <menuContribution
206
           allPopups="false"
207
           locationURI="menu:menu.file.export.annotations">
208
           <command
209
                 commandId="org.txm.annotation.kr.rcp.commands.ExportTable"
210
                 id="menu.file.export.exporttable"
211
                 label="%command.label.1"
212
                 style="push">
213
              <visibleWhen
214
                    checkEnabled="false">
215
                 <reference
216
                       definitionId="OneMainCorpusSelected">
217
                 </reference>
218
              </visibleWhen>
219
           </command>
220
     </menuContribution>
221
     <menuContribution
222
           allPopups="false"
223
           locationURI="menu:corporaview.menu.file.export?after=org.txm.rcp.views.corpora.CorporaView.annotation">
224
            <command
225
                  commandId="org.txm.rcp.commands.annotation.ExportStandoff"
226
                  label="%command.label.0"
227
                  style="push">
228
               <visibleWhen
229
                     checkEnabled="false">
230
                  <reference
231
                        definitionId="OneMainCorpusSelected">
232
                  </reference>
233
               </visibleWhen>
234
            </command>
235
            <command
236
                  commandId="org.txm.annotation.kr.rcp.commands.ExportTable"
237
                  label="%command.label.1"
238
                  style="push">
239
               <visibleWhen
240
                     checkEnabled="false">
241
                  <reference
242
                        definitionId="OneMainCorpusSelected">
243
                  </reference>
244
               </visibleWhen>
245
            </command>
246
     </menuContribution>
247
     <menuContribution
248
           allPopups="false"
249
           locationURI="menu:menu.corpus?after=menu.corpus.build">
250
           <command
251
                  commandId="org.txm.annotation.kr.rcp.commands.SaveAnnotationsAndUpdateCorpus"
252
                  icon="icons/functions/pencil_save.png"
253
                  label="%command.label.111"
254
                  style="push">
255
            </command>
256
     </menuContribution>
257
     <menuContribution
258
           allPopups="false"
259
           locationURI="popup:org.txm.rcp.views.corpora.CorporaView">
260
        <command
261
              commandId="org.txm.annotation.kr.rcp.commands.SaveAnnotationsAndUpdateCorpus"
262
              icon="icons/functions/pencil_save.png"
263
              label="%command.label.111"
264
              style="push">
265
           <visibleWhen
266
                 checkEnabled="false">
267
              <reference
268
                    definitionId="CorpusNeedtoSaveAnnotation">
269
              </reference>
270
           </visibleWhen>
271
        </command>
272
     </menuContribution>
273
     <menuContribution
274
           allPopups="false"
275
           locationURI="toolbar:org.txm.rcp.toolbarcorpus?after=org.txm.rcp.toolbarcorpus.annotation">
276
        <command
277
              commandId="org.txm.annotation.kr.rcp.commands.SaveAnnotationsAndUpdateCorpus"
278
              icon="icons/functions/pencil_save.png"
279
              label="CQP"
280
              mode="FORCE_TEXT"
281
              style="push"
282
              tooltip="CQP">
283
        </command>
284
     </menuContribution>
285
     <menuContribution
286
           locationURI="menu:menu.file.import.annotations">
287
        <command
288
              commandId="org.txm.annotation.kr.rcp.commands.ImportTable"
289
              label="%command.label.2"
290
              style="push">
291
           <visibleWhen
292
                 checkEnabled="false">
293
              <reference
294
                    definitionId="OneMainCorpusSelected">
295
              </reference>
296
           </visibleWhen>
297
        </command>
298
     </menuContribution>
299
  </extension>
300
  <extension
301
         point="org.eclipse.ui.contexts">
302
      <context
303
            description="%context.description"
304
            id="org.txm.rcp.annotation.krview"
305
            name="%context.name">
306
      </context>
307
   </extension>
308
  <extension
309
        point="org.eclipse.core.expressions.definitions">
310
     <definition
311
                  id="OneKRSelected">
312
               <with
313
                     variable="selection">
314
                  <iterate
315
                        ifEmpty="false"
316
                        operator="and">
317
                     <instanceof
318
                           value="org.txm.annotation.KnowledgeRepository">
319
                     </instanceof>
320
                  </iterate>
321
               </with>
322
            </definition>
323
            <definition
324
                  id="OneLocalKRSelected">
325
               <with
326
                     variable="selection">
327
                  <iterate
328
                        ifEmpty="false"
329
                        operator="and">
330
                     <instanceof
331
                           value="org.txm.annotation.repository.LocalKnowledgeRepository">
332
                     </instanceof>
333
                  </iterate>
334
               </with>
335
            </definition>
336
                        <definition
337
                  id="OneAnnotationTypeSelected">
338
               <with
339
                     variable="selection">
340
                  <iterate
341
                        ifEmpty="false"
342
                        operator="and">
343
                     <instanceof
344
                           value="org.txm.annotation.repository.AnnotationType">
345
                     </instanceof>
346
                  </iterate>
347
               </with>
348
            </definition>
349
            <definition
350
                  id="OneTypedValueSelected">
351
               <with
352
                     variable="selection">
353
                  <iterate
354
                        ifEmpty="false"
355
                        operator="and">
356
                     <instanceof
357
                           value="org.txm.annotation.repository.TypedValue">
358
                     </instanceof>
359
                  </iterate>
360
               </with>
361
            </definition>
362
            <definition
363
                  id="CorpusNeedtoSaveAnnotation">
364
               <and>
365
                  <test
366
                        forcePluginActivation="true"
367
                        property="org.txm.rcp.testers.IsCorpusDirty">
368
                  </test>
369
               </and>
370
            </definition>
371
  </extension>
372
  
373
     <extension
374
         point="org.eclipse.core.expressions.propertyTesters">
375
      <propertyTester
376
            class="org.txm.rcp.testers.IsCorpusDirty"
377
            id="org.txm.rcp.testers.IsCorpusDirty"
378
            namespace="org.txm.rcp.testers"
379
            properties="IsCorpusDirty"
380
            type="java.lang.Object">
381
      </propertyTester>
382
   </extension>
383
  
384
  <extension
385
        point="org.txm.annotation.rcp.editor.AnnotationArea">
386
     <annotationtoolbar
387
           class="org.txm.annotation.kr.rcp.concordance.KRAnnotation"
388
           position="3">
389
     </annotationtoolbar>
390
     <annotationtoolbar
391
           class="org.txm.annotation.kr.rcp.concordance.WordAnnotationToolbar"
392
           position="1">
393
     </annotationtoolbar>
394
     <annotationtoolbar
395
           class="org.txm.annotation.kr.rcp.concordance.SimpleKRAnnotation"
396
           position="2">
397
     </annotationtoolbar>
398
     <annotationtoolbar
399
           class="org.txm.annotation.kr.rcp.edition.WordAnnotationToolbar"
400
           position="3">
401
     </annotationtoolbar>
402
  </extension>
403
</plugin>