Revision b9a0d300
Added by Lorna Morris over 12 years ago
eu.etaxonomy.taxeditor.store/plugin.xml | ||
---|---|---|
221 | 221 |
restorable="true"> |
222 | 222 |
</view> |
223 | 223 |
</extension> |
224 |
<extension |
|
225 |
point="org.eclipse.ui.editors"> |
|
226 |
<editor |
|
227 |
class="eu.etaxonomy.taxeditor.editor.definedterm.DefinedTermEditor" |
|
228 |
default="false" |
|
229 |
id="eu.etaxonomy.taxeditor.editor.definedTerm" |
|
230 |
name="Defined Term Editor"> |
|
231 |
</editor> |
|
232 |
</extension> |
|
224 | 233 |
<extension |
225 | 234 |
point="org.eclipse.ui.menus"> |
226 | 235 |
<menuContribution |
... | ... | |
288 | 297 |
</visibleWhen> |
289 | 298 |
</command> |
290 | 299 |
</menu> |
300 |
<menu |
|
301 |
id="eu.etaxonomy.taxeditor.store.definedTermEditorMenu" |
|
302 |
label="Term Editor"> |
|
303 |
<command |
|
304 |
commandId="eu.etaxonomy.taxeditor.store.openDefinedTermEditor" |
|
305 |
label="Named Area" |
|
306 |
style="push"> |
|
307 |
<parameter |
|
308 |
name="eu.etaxonomy.taxeditor.store.openDefinedTermEditor.parameter" |
|
309 |
value="eu.etaxonomy.cdm.model.location.NamedArea"> |
|
310 |
</parameter> |
|
311 |
</command> |
|
312 |
<command |
|
313 |
commandId="eu.etaxonomy.taxeditor.store.openDefinedTermEditor" |
|
314 |
label="Named Area Level" |
|
315 |
style="push"> |
|
316 |
<parameter |
|
317 |
name="eu.etaxonomy.taxeditor.store.openDefinedTermEditor.parameter" |
|
318 |
value="eu.etaxonomy.cdm.model.location.NamedAreaLevel"> |
|
319 |
</parameter> |
|
320 |
</command> |
|
321 |
<separator |
|
322 |
name="eu.etaxonomy.taxeditor.store.definedTermEditorMenu.separator2" |
|
323 |
visible="true"> |
|
324 |
</separator> |
|
325 |
<command |
|
326 |
commandId="eu.etaxonomy.taxeditor.store.openDefinedTermEditor" |
|
327 |
label="Extension Type" |
|
328 |
style="push"> |
|
329 |
<parameter |
|
330 |
name="eu.etaxonomy.taxeditor.store.openDefinedTermEditor.parameter" |
|
331 |
value="eu.etaxonomy.cdm.model.common.ExtensionType"> |
|
332 |
</parameter> |
|
333 |
</command> |
|
334 |
<command |
|
335 |
commandId="eu.etaxonomy.taxeditor.store.openDefinedTermEditor" |
|
336 |
label="Marker Type" |
|
337 |
style="push"> |
|
338 |
<parameter |
|
339 |
name="eu.etaxonomy.taxeditor.store.openDefinedTermEditor.parameter" |
|
340 |
value="eu.etaxonomy.cdm.model.description.Feature"> |
|
341 |
</parameter> |
|
342 |
</command> |
|
343 |
<separator |
|
344 |
name="eu.etaxonomy.taxeditor.store.definedTermEditorMenu.separator3" |
|
345 |
visible="true"> |
|
346 |
</separator> |
|
347 |
<command |
|
348 |
commandId="eu.etaxonomy.taxeditor.store.openDefinedTermEditor" |
|
349 |
label="Feature" |
|
350 |
style="push"> |
|
351 |
<parameter |
|
352 |
name="eu.etaxonomy.taxeditor.store.openDefinedTermEditor.parameter" |
|
353 |
value="eu.etaxonomy.cdm.model.description.Feature"> |
|
354 |
</parameter> |
|
355 |
</command> |
|
356 |
</menu> |
|
291 | 357 |
</menuContribution> |
292 | 358 |
<menuContribution |
293 | 359 |
locationURI="menu:org.eclipse.ui.main.menu.file?after=eu.etaxonomy.taxeditor.application.filemenu.io"> |
... | ... | |
359 | 425 |
</control> |
360 | 426 |
</toolbar> |
361 | 427 |
</menuContribution> |
428 |
<menuContribution |
|
429 |
locationURI="popup:eu.etaxonomy.taxeditor.editor.definedTerm"> |
|
430 |
<menu |
|
431 |
label="New"> |
|
432 |
<command |
|
433 |
commandId="eu.etaxonomy.taxeditor.editor.definedTerms.newTermVocabulary" |
|
434 |
label="Vocabulary" |
|
435 |
style="push"> |
|
436 |
</command> |
|
437 |
<command |
|
438 |
commandId="eu.etaxonomy.taxeditor.editor.definedTerms.newDefinedTerm" |
|
439 |
label="Defined Term" |
|
440 |
style="push"> |
|
441 |
<visibleWhen |
|
442 |
checkEnabled="true"> |
|
443 |
<reference |
|
444 |
definitionId="isModifiable"> |
|
445 |
</reference> |
|
446 |
</visibleWhen> |
|
447 |
</command> |
|
448 |
</menu> |
|
449 |
<command |
|
450 |
commandId="org.eclipse.ui.edit.delete" |
|
451 |
label="Delete" |
|
452 |
style="push"> |
|
453 |
<visibleWhen |
|
454 |
checkEnabled="true"> |
|
455 |
<reference |
|
456 |
definitionId="isModifiable"> |
|
457 |
</reference> |
|
458 |
</visibleWhen> |
|
459 |
</command> |
|
460 |
</menuContribution> |
|
362 | 461 |
</extension> |
363 | 462 |
<extension |
364 | 463 |
name="Window Menu Commands" |
365 | 464 |
point="org.eclipse.ui.commands"> |
465 |
<command |
|
466 |
defaultHandler="eu.etaxonomy.taxeditor.editor.definedterm.handler.OpenDefinedTermEditorHandler" |
|
467 |
id="eu.etaxonomy.taxeditor.store.openDefinedTermEditor" |
|
468 |
name="Open Defined Term Editor"> |
|
469 |
<commandParameter |
|
470 |
id="eu.etaxonomy.taxeditor.store.openDefinedTermEditor.parameter" |
|
471 |
name="inputType" |
|
472 |
optional="true"> |
|
473 |
</commandParameter> |
|
474 |
</command> |
|
475 |
</extension> |
|
476 |
<extension |
|
477 |
name="File Menu Commands" |
|
478 |
point="org.eclipse.ui.commands"> |
|
366 | 479 |
<command |
367 | 480 |
defaultHandler="eu.etaxonomy.taxeditor.handler.ShowLoginWindowHandler" |
368 | 481 |
id="eu.etaxonomy.taxeditor.store.operations.showLoginWindow" |
... | ... | |
383 | 496 |
</with> |
384 | 497 |
</activeWhen> |
385 | 498 |
</handler> |
499 |
<handler |
|
500 |
class="eu.etaxonomy.taxeditor.editor.definedterm.handler.DeleteTermBaseHandler" |
|
501 |
commandId="org.eclipse.ui.edit.delete"> |
|
502 |
<activeWhen> |
|
503 |
<with |
|
504 |
variable="activePartId"> |
|
505 |
<equals |
|
506 |
value="eu.etaxonomy.taxeditor.editor.definedTerm"> |
|
507 |
</equals> |
|
508 |
</with> |
|
509 |
</activeWhen> |
|
510 |
</handler> |
|
386 | 511 |
</extension> |
387 | 512 |
<extension |
388 | 513 |
name="Popup Menu Commands" |
... | ... | |
413 | 538 |
name="Update Datasource"> |
414 | 539 |
</command> |
415 | 540 |
</extension> |
541 |
<extension |
|
542 |
point="org.eclipse.ui.commands"> |
|
543 |
<command |
|
544 |
defaultHandler="eu.etaxonomy.taxeditor.editor.definedterm.handler.CreateDefinedTermHandler" |
|
545 |
id="eu.etaxonomy.taxeditor.editor.definedTerms.newDefinedTerm" |
|
546 |
name="New Defined Term"> |
|
547 |
</command> |
|
548 |
<command |
|
549 |
defaultHandler="eu.etaxonomy.taxeditor.editor.definedterm.handler.CreateTermVocabularyHandler" |
|
550 |
id="eu.etaxonomy.taxeditor.editor.definedTerms.newTermVocabulary" |
|
551 |
name="New Term Vocabulary"> |
|
552 |
</command> |
|
553 |
</extension> |
|
416 | 554 |
<extension |
417 | 555 |
point="org.eclipse.ui.importWizards"> |
418 | 556 |
<category |
... | ... | |
773 | 911 |
properties="isShowExperimentalFeatures" |
774 | 912 |
type="org.eclipse.jface.viewers.IStructuredSelection"> |
775 | 913 |
</propertyTester> |
914 |
<propertyTester |
|
915 |
class="eu.etaxonomy.taxeditor.editor.definedterm.TermBasePropertyTester" |
|
916 |
id="eu.etaxonomy.taxeditor.store.termEditor.propertyTester" |
|
917 |
namespace="eu.etaxonomy.taxeditor.store.termEditor.propertyTester" |
|
918 |
properties="isModifiable" |
|
919 |
type="org.eclipse.jface.viewers.IStructuredSelection"> |
|
920 |
</propertyTester> |
|
776 | 921 |
</extension> |
777 | 922 |
<extension |
778 | 923 |
point="org.eclipse.core.expressions.definitions"> |
... | ... | |
794 | 939 |
</test> |
795 | 940 |
</with> |
796 | 941 |
</definition> |
942 |
<definition |
|
943 |
id="isModifiable"> |
|
944 |
<with |
|
945 |
variable="activeMenuSelection"> |
|
946 |
<test |
|
947 |
property="eu.etaxonomy.taxeditor.store.termEditor.propertyTester.isModifiable"> |
|
948 |
</test> |
|
949 |
</with> |
|
950 |
</definition> |
|
797 | 951 |
</extension> |
798 | 952 |
|
799 | 953 |
</plugin> |
Also available in: Unified diff
Committing changes to definedtermeditor after merge from branch