Statistiques
| Révision :

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

Historique | Voir | Annoter | Télécharger (12,99 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
   </extension>
60
  <extension
61
        point="org.eclipse.ui.preferencePages">
62
     <page
63
           category="org.txm.annotation.rcp.preferences.AnnotationPreferencePage"
64
           class="org.txm.annotation.kr.rcp.preferences.KRAnnotationPreferencePage"
65
           id="org.txm.annotation.kr.rcp.preferences.KRAnnotationPreferencePage"
66
           name="CQP">
67
     </page>
68
  </extension>
69
     <extension
70
         point="org.eclipse.ui.views">
71
      <view
72
            category="org.txm.rcp"
73
            class="org.txm.annotation.kr.rcp.views.knowledgerepositories.KRView"
74
            id="org.txm.annotation.kr.rcp.views.knowledgerepositories.KRView"
75
            name="%view.name"
76
            restorable="true">
77
      </view>
78
   </extension>
79
  <extension
80
         point="org.eclipse.ui.bindings">
81
      <key
82
            commandId="org.txm.rcp.commands.krview.Add"
83
            contextId="org.txm.rcp.annotation.krview"
84
            schemeId="org.txm.rcp.scheme"
85
            sequence="Ctrl+A">
86
      </key>
87
      <key
88
            commandId="org.txm.rcp.commands.krview.Reload"
89
            contextId="org.txm.rcp.annotation.krview"
90
            schemeId="org.txm.rcp.scheme"
91
            sequence="Ctrl+R">
92
      </key>
93
      <key
94
            commandId="org.txm.rcp.commands.krview.Informations"
95
            contextId="org.txm.rcp.annotation.krview"
96
            schemeId="org.txm.rcp.scheme"
97
            sequence="Ctrl+I">
98
      </key>
99
      <key
100
            commandId="org.txm.rcp.commands.krview.Copy"
101
            contextId="org.txm.rcp.annotation.krview"
102
            schemeId="org.txm.rcp.scheme"
103
            sequence="Ctrl+C">
104
      </key>
105
      <key
106
            commandId="org.txm.rcp.commands.krview.Delete"
107
            contextId="org.txm.rcp.annotation.krview"
108
            schemeId="org.txm.rcp.scheme"
109
            sequence="Ctrl+D">
110
      </key>
111
   </extension>
112
  <extension
113
        point="org.eclipse.ui.menus">
114
     <menuContribution
115
           allPopups="false"
116
           locationURI="menu:menu.display.views?before=menu.display.views.separator">
117
           <command
118
                     commandId="org.txm.rcp.commands.krview.OpenKRView"
119
                     label="%command.label"
120
                     style="push">
121
               </command>
122
     </menuContribution>
123
     <menuContribution
124
            locationURI="popup:org.txm.annotation.kr.rcp.views.knowledgerepositories.KRView">
125
         <command
126
               commandId="org.txm.rcp.commands.krview.Copy"
127
               style="push"
128
               tooltip="%command.tooltip.89">
129
         </command>
130
         <command
131
               commandId="org.txm.rcp.commands.krview.Reload"
132
               style="push"
133
               tooltip="%command.tooltip.90">
134
            <visibleWhen
135
                  checkEnabled="false">
136
               <reference
137
                     definitionId="OneKRSelected">
138
               </reference>
139
            </visibleWhen>
140
         </command>
141
         <command
142
               commandId="org.txm.rcp.commands.krview.Informations"
143
               style="push"
144
               tooltip="%command.tooltip.93">
145
         </command>
146
         <command
147
               commandId="org.txm.rcp.commands.krview.Add"
148
               style="push"
149
               tooltip="%command.tooltip.94">
150
            <visibleWhen
151
                  checkEnabled="false">
152
               <or>
153
                  <reference
154
                        definitionId="OneLocalKRSelected">
155
                  </reference>
156
                  <reference
157
                        definitionId="OneAnnotationTypeSelected">
158
                  </reference>
159
               </or>
160
            </visibleWhen>
161
         </command>
162
         <command
163
               commandId="org.txm.rcp.commands.krview.Delete"
164
               style="push"
165
               tooltip="%command.tooltip.95">
166
            <visibleWhen
167
                  checkEnabled="false">
168
               <or>
169
                  <reference
170
                        definitionId="OneAnnotationTypeSelected">
171
                  </reference>
172
                  <reference
173
                        definitionId="OneTypedValueSelected">
174
                  </reference>
175
               </or>
176
            </visibleWhen>
177
         </command>
178
      </menuContribution>
179
     <menuContribution
180
           allPopups="false"
181
           locationURI="menu:menu.file.export.annotations">
182
           <command
183
                     commandId="org.txm.rcp.commands.annotation.ExportStandoff"
184
                     id="menu.file.export.exporttei"
185
                     label="%command.label.0"
186
                     style="push">
187
                  <visibleWhen
188
                        checkEnabled="false">
189
                     <reference
190
                           definitionId="OneMainCorpusSelected">
191
                     </reference>
192
                  </visibleWhen>
193
               </command>
194
     </menuContribution>
195
     <menuContribution
196
           allPopups="false"
197
           locationURI="menu:corporaview.menu.file.export?after=org.txm.rcp.views.corpora.CorporaView.annotation">
198
            <command
199
                  commandId="org.txm.rcp.commands.annotation.ExportStandoff"
200
                  label="%command.label.193"
201
                  style="push">
202
               <visibleWhen
203
                     checkEnabled="false">
204
                  <reference
205
                        definitionId="OneMainCorpusSelected">
206
                  </reference>
207
               </visibleWhen>
208
            </command>
209
     </menuContribution>
210
     <menuContribution
211
           allPopups="false"
212
           locationURI="menu:menu.corpus?after=menu.corpus.build">
213
           <command
214
                  commandId="org.txm.annotation.kr.rcp.commands.SaveAnnotationsAndUpdateCorpus"
215
                  icon="icons/functions/pencil_save.png"
216
                  label="%command.label.111"
217
                  style="push">
218
              <visibleWhen
219
                    checkEnabled="false">
220
                 <reference
221
                       definitionId="CorpusNeedtoSaveAnnotation">
222
                 </reference>
223
              </visibleWhen>
224
            </command>
225
     </menuContribution>
226
     <menuContribution
227
           allPopups="false"
228
           locationURI="popup:org.txm.rcp.views.corpora.CorporaView">
229
        <command
230
              commandId="org.txm.annotation.kr.rcp.commands.SaveAnnotationsAndUpdateCorpus"
231
              icon="icons/functions/pencil_save.png"
232
              label="%command.label.111"
233
              style="push">
234
           <visibleWhen
235
                 checkEnabled="false">
236
              <reference
237
                    definitionId="CorpusNeedtoSaveAnnotation">
238
              </reference>
239
           </visibleWhen>
240
        </command>
241
     </menuContribution>
242
     <menuContribution
243
           allPopups="false"
244
           locationURI="toolbar:org.txm.rcp.toolbarcorpus?after=org.txm.rcp.toolbarcorpus.annotation">
245
        <command
246
              commandId="org.txm.annotation.kr.rcp.commands.SaveAnnotationsAndUpdateCorpus"
247
              icon="icons/functions/pencil_save.png"
248
              label="%command.label.111"
249
              style="push">
250
           <visibleWhen
251
                 checkEnabled="false">
252
              <reference
253
                    definitionId="CorpusNeedtoSaveAnnotation">
254
              </reference>
255
           </visibleWhen>
256
        </command>
257
     </menuContribution>
258
  </extension>
259
  <extension
260
         point="org.eclipse.ui.contexts">
261
      <context
262
            description="%context.description"
263
            id="org.txm.rcp.annotation.krview"
264
            name="%context.name">
265
      </context>
266
   </extension>
267
  <extension
268
        point="org.eclipse.core.expressions.definitions">
269
     <definition
270
                  id="OneKRSelected">
271
               <with
272
                     variable="selection">
273
                  <iterate
274
                        ifEmpty="false"
275
                        operator="and">
276
                     <instanceof
277
                           value="org.txm.annotation.KnowledgeRepository">
278
                     </instanceof>
279
                  </iterate>
280
               </with>
281
            </definition>
282
            <definition
283
                  id="OneLocalKRSelected">
284
               <with
285
                     variable="selection">
286
                  <iterate
287
                        ifEmpty="false"
288
                        operator="and">
289
                     <instanceof
290
                           value="org.txm.annotation.repository.LocalKnowledgeRepository">
291
                     </instanceof>
292
                  </iterate>
293
               </with>
294
            </definition>
295
                        <definition
296
                  id="OneAnnotationTypeSelected">
297
               <with
298
                     variable="selection">
299
                  <iterate
300
                        ifEmpty="false"
301
                        operator="and">
302
                     <instanceof
303
                           value="org.txm.annotation.repository.AnnotationType">
304
                     </instanceof>
305
                  </iterate>
306
               </with>
307
            </definition>
308
            <definition
309
                  id="OneTypedValueSelected">
310
               <with
311
                     variable="selection">
312
                  <iterate
313
                        ifEmpty="false"
314
                        operator="and">
315
                     <instanceof
316
                           value="org.txm.annotation.repository.TypedValue">
317
                     </instanceof>
318
                  </iterate>
319
               </with>
320
            </definition>
321
            <definition
322
                  id="CorpusNeedtoSaveAnnotation">
323
               <and>
324
                  <reference
325
                        definitionId="OneMainCorpusSelected">
326
                  </reference>
327
                  <test
328
                        forcePluginActivation="true"
329
                        property="org.txm.rcp.testers.IsCorpusDirty">
330
                  </test>
331
               </and>
332
            </definition>
333
  </extension>
334
  
335
     <extension
336
         point="org.eclipse.core.expressions.propertyTesters">
337
      <propertyTester
338
            class="org.txm.rcp.testers.IsCorpusDirty"
339
            id="org.txm.rcp.testers.IsCorpusDirty"
340
            namespace="org.txm.rcp.testers"
341
            properties="IsCorpusDirty"
342
            type="java.lang.Object">
343
      </propertyTester>
344
   </extension>
345
  
346
  <extension
347
        point="org.txm.annotation.rcp.editor.AnnotationArea">
348
     <annotationtoolbar
349
           class="org.txm.annotation.kr.rcp.concordance.KRAnnotation"
350
           position="3">
351
     </annotationtoolbar>
352
     <annotationtoolbar
353
           class="org.txm.annotation.kr.rcp.concordance.WordAnnotationToolbar"
354
           position="1">
355
     </annotationtoolbar>
356
     <annotationtoolbar
357
           class="org.txm.annotation.kr.rcp.concordance.SimpleKRAnnotation"
358
           position="2">
359
     </annotationtoolbar>
360
  </extension>
361
</plugin>