Revision 853 tmp/org.txm.annotation.rcp/plugin.xml

plugin.xml (revision 853)
4 4
   <extension-point id="org.txm.annotation.rcp.editor.AnnotationArea" name="org.txm.annotation.rcp.editor.AnnotationArea" schema="schema/org.txm.annotation.rcp.editor.AnnotationArea.exsd"/>
5 5
   <extension
6 6
         point="org.eclipse.ui.commands">
7
               <command
8
            categoryId="org.txm.rcp.category.txm"
9
            defaultHandler="org.txm.rcp.commands.workspace.RecodeCorpus"
10
            id="org.txm.rcp.commands.workspace.RecodeCorpus"
11
            name="Recode Corpus">
12
      </command>
13
            <command
14
            categoryId="org.txm.rcp.category.txm"
15
            defaultHandler="org.txm.annotation.rcp.commands.SaveAnnotations"
16
            id="org.txm.rcp.commands.annotation.SaveAnnotations"
17
            name="Save annotations">
18
      </command>
19
            <command
20
            defaultHandler="org.txm.annotation.rcp.commands.krview.OpenKRView"
21
            id="org.txm.rcp.commands.krview.OpenKRView"
22
            name="Open KR View">
23
      </command>
24
      <command
25
            defaultHandler="org.txm.annotation.rcp.commands.krview.Copy"
26
            id="org.txm.rcp.commands.krview.Copy"
27
            name="Copy">
28
      </command>
29
      <command
30
            defaultHandler="org.txm.annotation.rcp.commands.krview.Reload"
31
            id="org.txm.rcp.commands.krview.Reload"
32
            name="Reload">
33
      </command>
34
      <command
35
            defaultHandler="org.txm.annotation.rcp.commands.krview.Informations"
36
            id="org.txm.rcp.commands.krview.Informations"
37
            name="Informations">
38
      </command>
39
      <command
40
            defaultHandler="org.txm.annotation.rcp.commands.krview.Delete"
41
            id="org.txm.rcp.commands.krview.Delete"
42
            name="Delete">
43
      </command>
44
      <command
45
            defaultHandler="org.txm.annotation.rcp.commands.krview.Add"
46
            id="org.txm.rcp.commands.krview.Add"
47
            name="Add">
48
      </command>
49
      <command
50
            defaultHandler="org.txm.annotation.rcp.commands.ExportStandoff"
51
            id="org.txm.rcp.commands.annotation.ExportStandoff"
52
            name="Export annotations">
53
      </command>
54 7
   </extension>
55 8
  <extension
56 9
        point="org.eclipse.ui.preferencePages">
......
61 14
           name="Annotation">
62 15
     </page>
63 16
  </extension>
64
     <extension
65
         point="org.eclipse.ui.views">
66
      <view
67
            category="org.txm.rcp"
68
            class="org.txm.annotation.rcp.views.knowledgerepositories.KRView"
69
            id="org.txm.annotation.rcp.views.knowledgerepositories.KRView"
70
            name="KR"
71
            restorable="true">
72
      </view>
73
   </extension>
74 17
  <extension
75
         point="org.eclipse.ui.bindings">
76
      <key
77
            commandId="org.txm.rcp.commands.krview.Add"
78
            contextId="org.txm.rcp.annotation.krview"
79
            schemeId="org.txm.rcp.scheme"
80
            sequence="Ctrl+A">
81
      </key>
82
      <key
83
            commandId="org.txm.rcp.commands.krview.Reload"
84
            contextId="org.txm.rcp.annotation.krview"
85
            schemeId="org.txm.rcp.scheme"
86
            sequence="Ctrl+R">
87
      </key>
88
      <key
89
            commandId="org.txm.rcp.commands.krview.Informations"
90
            contextId="org.txm.rcp.annotation.krview"
91
            schemeId="org.txm.rcp.scheme"
92
            sequence="Ctrl+I">
93
      </key>
94
      <key
95
            commandId="org.txm.rcp.commands.krview.Copy"
96
            contextId="org.txm.rcp.annotation.krview"
97
            schemeId="org.txm.rcp.scheme"
98
            sequence="Ctrl+C">
99
      </key>
100
      <key
101
            commandId="org.txm.rcp.commands.krview.Delete"
102
            contextId="org.txm.rcp.annotation.krview"
103
            schemeId="org.txm.rcp.scheme"
104
            sequence="Ctrl+D">
105
      </key>
106
   </extension>
107
  <extension
108
        point="org.eclipse.ui.menus">
109
     <menuContribution
110
           allPopups="false"
111
           locationURI="menu:menu.display.views">
112
           <command
113
                     commandId="org.txm.rcp.commands.krview.OpenKRView"
114
                     label="KR"
115
                     style="push">
116
               </command>
117
     </menuContribution>
118
     <menuContribution
119
            locationURI="popup:org.txm.annotation.rcp.views.knowledgerepositories.KRView">
120
         <command
121
               commandId="org.txm.rcp.commands.krview.Copy"
122
               style="push"
123
               tooltip="%command.tooltip.89">
124
         </command>
125
         <command
126
               commandId="org.txm.rcp.commands.krview.Reload"
127
               style="push"
128
               tooltip="%command.tooltip.90">
129
            <visibleWhen
130
                  checkEnabled="false">
131
               <reference
132
                     definitionId="OneKRSelected">
133
               </reference>
134
            </visibleWhen>
135
         </command>
136
         <command
137
               commandId="org.txm.rcp.commands.krview.Informations"
138
               style="push"
139
               tooltip="%command.tooltip.93">
140
         </command>
141
         <command
142
               commandId="org.txm.rcp.commands.krview.Add"
143
               style="push"
144
               tooltip="%command.tooltip.94">
145
            <visibleWhen
146
                  checkEnabled="false">
147
               <or>
148
                  <reference
149
                        definitionId="OneLocalKRSelected">
150
                  </reference>
151
                  <reference
152
                        definitionId="OneAnnotationTypeSelected">
153
                  </reference>
154
               </or>
155
            </visibleWhen>
156
         </command>
157
         <command
158
               commandId="org.txm.rcp.commands.krview.Delete"
159
               style="push"
160
               tooltip="%command.tooltip.95">
161
            <visibleWhen
162
                  checkEnabled="false">
163
               <or>
164
                  <reference
165
                        definitionId="OneAnnotationTypeSelected">
166
                  </reference>
167
                  <reference
168
                        definitionId="OneTypedValueSelected">
169
                  </reference>
170
               </or>
171
            </visibleWhen>
172
         </command>
173
      </menuContribution>
174
     <menuContribution
175
           allPopups="false"
176
           locationURI="menu:menu.file.export">
177
           <command
178
                     commandId="org.txm.rcp.commands.annotation.ExportStandoff"
179
                     id="menu.file.export.exporttei"
180
                     label="Export annotations"
181
                     style="push">
182
                  <visibleWhen
183
                        checkEnabled="false">
184
                     <reference
185
                           definitionId="OneMainCorpusSelected">
186
                     </reference>
187
                  </visibleWhen>
188
               </command>
189
     </menuContribution>
190
     <menuContribution
191
           allPopups="false"
192
           locationURI="menu:menu.corpus?after=menu.corpus.build">
193
           <command
194
                  commandId="org.txm.rcp.commands.annotation.SaveAnnotations"
195
                  icon="icons/functions/save.png"
196
                  label="%command.label.111"
197
                  style="push">
198
               <visibleWhen
199
                     checkEnabled="false">
200
                  <reference
201
                        definitionId="NeedToSaveAnnotations">
202
                  </reference>
203
               </visibleWhen>
204
            </command>
205
     </menuContribution>
206
     <menuContribution
207
           allPopups="false"
208
           locationURI="toolbar:org.txm.rcp.toolbarcorpus?after=org.txm.rcp.toolbarcorpus.annotation">
209
           <command
210
                  commandId="org.txm.rcp.commands.annotation.SaveAnnotations"
211
                  icon="icons/functions/save.png"
212
                  label="%command.label.151"
213
                  style="push">
214
               <visibleWhen
215
                     checkEnabled="false">
216
                  <reference
217
                        definitionId="NeedToSaveAnnotations">
218
                  </reference>
219
               </visibleWhen>
220
            </command>
221
     </menuContribution>
222
     <menuContribution
223
           allPopups="false"
224
           locationURI="menu:corporaview.menu.file.export?after=org.txm.rcp.views.corpora.CorporaView.annotation">
225
            <command
226
                  commandId="org.txm.rcp.commands.annotation.ExportStandoff"
227
                  label="%command.label.193"
228
                  style="push">
229
               <visibleWhen
230
                     checkEnabled="false">
231
                  <reference
232
                        definitionId="OneMainCorpusSelected">
233
                  </reference>
234
               </visibleWhen>
235
            </command>
236
     </menuContribution>
237
     <menuContribution
238
           allPopups="false"
239
           locationURI="popup:org.txm.rcp.views.corpora.CorporaView">
240
        <command
241
              commandId="org.txm.rcp.commands.annotation.SaveAnnotations"
242
              icon="icons/functions/save.png"
243
              label="%command.label.154"
244
              style="push">
245
           <visibleWhen
246
                 checkEnabled="false">
247
              <reference
248
                    definitionId="NeedToSaveAnnotations">
249
              </reference>
250
           </visibleWhen>
251
        </command>
252
     </menuContribution>
18
        point="org.txm.rcp.editors.TXMEditorExtension">
19
     <editorextension
20
           class="org.txm.annotation.rcp.editor.AnnotationExtension">
21
     </editorextension>
253 22
  </extension>
254
  <extension
255
         point="org.eclipse.ui.contexts">
256
      <context
257
            description="%context.description"
258
            id="org.txm.rcp.annotation.krview"
259
            name="%context.name">
260
      </context>
261
   </extension>
262
  <extension
263
        point="org.eclipse.core.expressions.definitions">
264
     <definition
265
                  id="OneKRSelected">
266
               <with
267
                     variable="selection">
268
                  <iterate
269
                        ifEmpty="false"
270
                        operator="and">
271
                     <instanceof
272
                           value="org.txm.annotation.KnowledgeRepository">
273
                     </instanceof>
274
                  </iterate>
275
               </with>
276
            </definition>
277
            <definition
278
                  id="OneLocalKRSelected">
279
               <with
280
                     variable="selection">
281
                  <iterate
282
                        ifEmpty="false"
283
                        operator="and">
284
                     <instanceof
285
                           value="org.txm.annotation.repository.LocalKnowledgeRepository">
286
                     </instanceof>
287
                  </iterate>
288
               </with>
289
            </definition>
290
                        <definition
291
                  id="OneAnnotationTypeSelected">
292
               <with
293
                     variable="selection">
294
                  <iterate
295
                        ifEmpty="false"
296
                        operator="and">
297
                     <instanceof
298
                           value="org.txm.annotation.repository.AnnotationType">
299
                     </instanceof>
300
                  </iterate>
301
               </with>
302
            </definition>
303
            <definition
304
                  id="OneTypedValueSelected">
305
               <with
306
                     variable="selection">
307
                  <iterate
308
                        ifEmpty="false"
309
                        operator="and">
310
                     <instanceof
311
                           value="org.txm.annotation.repository.TypedValue">
312
                     </instanceof>
313
                  </iterate>
314
               </with>
315
            </definition>
316
  </extension>
317
  <extension
318
        point="org.txm.concordance.rcp.editors.ConcordanceEditorExtension">
319
     <concextension
320
           class="org.txm.annotation.rcp.concordance.KRConcordanceAnnotationExtension"
321
           name="Annotation">
322
     </concextension>
323
  </extension>
324
  <extension
325
        point="org.txm.annotation.rcp.editor.AnnotationArea">
326
     <annotationtoolbar
327
           class="org.txm.annotation.rcp.concordance.KRAnnotation"
328
           position="3">
329
     </annotationtoolbar>
330
     <annotationtoolbar
331
           class="org.txm.annotation.rcp.concordance.WordAnnotationToolbar"
332
           position="1">
333
     </annotationtoolbar>
334
     <annotationtoolbar
335
           class="org.txm.annotation.rcp.concordance.SimpleKRAnnotation"
336
           position="2">
337
     </annotationtoolbar>
338
  </extension>
339 23
</plugin>

Also available in: Unified diff