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