Statistics
| Revision:

root / tmp / org.txm.annotation.rcp / plugin.xml @ 508

History | View | Annotate | Download (11.3 kB)

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