Statistiques
| Révision :

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

Historique | Voir | Annoter | Télécharger (14,8 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="Export in table">
63
      </command>
64
      <command
65
            defaultHandler="org.txm.annotation.kr.rcp.commands.ImportTable"
66
            id="org.txm.annotation.kr.rcp.commands.ImportTable"
67
            name="Import from table">
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="CQP">
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
              <visibleWhen
256
                    checkEnabled="false">
257
                 <reference
258
                       definitionId="CorpusNeedtoSaveAnnotation">
259
                 </reference>
260
              </visibleWhen>
261
            </command>
262
     </menuContribution>
263
     <menuContribution
264
           allPopups="false"
265
           locationURI="popup:org.txm.rcp.views.corpora.CorporaView">
266
        <command
267
              commandId="org.txm.annotation.kr.rcp.commands.SaveAnnotationsAndUpdateCorpus"
268
              icon="icons/functions/pencil_save.png"
269
              label="%command.label.111"
270
              style="push">
271
           <visibleWhen
272
                 checkEnabled="false">
273
              <reference
274
                    definitionId="CorpusNeedtoSaveAnnotation">
275
              </reference>
276
           </visibleWhen>
277
        </command>
278
     </menuContribution>
279
     <menuContribution
280
           allPopups="false"
281
           locationURI="toolbar:org.txm.rcp.toolbarcorpus?after=org.txm.rcp.toolbarcorpus.annotation">
282
        <command
283
              commandId="org.txm.annotation.kr.rcp.commands.SaveAnnotationsAndUpdateCorpus"
284
              icon="icons/functions/pencil_save.png"
285
              label="%command.label.111"
286
              style="push">
287
           <visibleWhen
288
                 checkEnabled="false">
289
              <reference
290
                    definitionId="CorpusNeedtoSaveAnnotation">
291
              </reference>
292
           </visibleWhen>
293
        </command>
294
     </menuContribution>
295
     <menuContribution
296
           locationURI="menu:menu.file.import.annotations">
297
        <command
298
              commandId="org.txm.annotation.kr.rcp.commands.ImportTable"
299
              label="CQP Annotation from Table (.csv)"
300
              style="push">
301
           <visibleWhen
302
                 checkEnabled="false">
303
              <reference
304
                    definitionId="OneMainCorpusSelected">
305
              </reference>
306
           </visibleWhen>
307
        </command>
308
     </menuContribution>
309
  </extension>
310
  <extension
311
         point="org.eclipse.ui.contexts">
312
      <context
313
            description="%context.description"
314
            id="org.txm.rcp.annotation.krview"
315
            name="%context.name">
316
      </context>
317
   </extension>
318
  <extension
319
        point="org.eclipse.core.expressions.definitions">
320
     <definition
321
                  id="OneKRSelected">
322
               <with
323
                     variable="selection">
324
                  <iterate
325
                        ifEmpty="false"
326
                        operator="and">
327
                     <instanceof
328
                           value="org.txm.annotation.KnowledgeRepository">
329
                     </instanceof>
330
                  </iterate>
331
               </with>
332
            </definition>
333
            <definition
334
                  id="OneLocalKRSelected">
335
               <with
336
                     variable="selection">
337
                  <iterate
338
                        ifEmpty="false"
339
                        operator="and">
340
                     <instanceof
341
                           value="org.txm.annotation.repository.LocalKnowledgeRepository">
342
                     </instanceof>
343
                  </iterate>
344
               </with>
345
            </definition>
346
                        <definition
347
                  id="OneAnnotationTypeSelected">
348
               <with
349
                     variable="selection">
350
                  <iterate
351
                        ifEmpty="false"
352
                        operator="and">
353
                     <instanceof
354
                           value="org.txm.annotation.repository.AnnotationType">
355
                     </instanceof>
356
                  </iterate>
357
               </with>
358
            </definition>
359
            <definition
360
                  id="OneTypedValueSelected">
361
               <with
362
                     variable="selection">
363
                  <iterate
364
                        ifEmpty="false"
365
                        operator="and">
366
                     <instanceof
367
                           value="org.txm.annotation.repository.TypedValue">
368
                     </instanceof>
369
                  </iterate>
370
               </with>
371
            </definition>
372
            <definition
373
                  id="CorpusNeedtoSaveAnnotation">
374
               <and>
375
                  <reference
376
                        definitionId="OneMainCorpusSelected">
377
                  </reference>
378
                  <test
379
                        forcePluginActivation="true"
380
                        property="org.txm.rcp.testers.IsCorpusDirty">
381
                  </test>
382
               </and>
383
            </definition>
384
  </extension>
385
  
386
     <extension
387
         point="org.eclipse.core.expressions.propertyTesters">
388
      <propertyTester
389
            class="org.txm.rcp.testers.IsCorpusDirty"
390
            id="org.txm.rcp.testers.IsCorpusDirty"
391
            namespace="org.txm.rcp.testers"
392
            properties="IsCorpusDirty"
393
            type="java.lang.Object">
394
      </propertyTester>
395
   </extension>
396
  
397
  <extension
398
        point="org.txm.annotation.rcp.editor.AnnotationArea">
399
     <annotationtoolbar
400
           class="org.txm.annotation.kr.rcp.concordance.KRAnnotation"
401
           position="3">
402
     </annotationtoolbar>
403
     <annotationtoolbar
404
           class="org.txm.annotation.kr.rcp.concordance.WordAnnotationToolbar"
405
           position="1">
406
     </annotationtoolbar>
407
     <annotationtoolbar
408
           class="org.txm.annotation.kr.rcp.concordance.SimpleKRAnnotation"
409
           position="2">
410
     </annotationtoolbar>
411
  </extension>
412
</plugin>