Revision db940f1c
Added by Patrick Plitzner about 8 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/referencingobjects/ReferencingObjectsView.java | ||
---|---|---|
49 | 49 |
import eu.etaxonomy.cdm.api.service.IMediaService; |
50 | 50 |
import eu.etaxonomy.cdm.api.service.INameService; |
51 | 51 |
import eu.etaxonomy.cdm.api.service.IOccurrenceService; |
52 |
import eu.etaxonomy.cdm.api.service.IPolytomousKeyNodeService; |
|
53 |
import eu.etaxonomy.cdm.api.service.IPolytomousKeyService; |
|
52 | 54 |
import eu.etaxonomy.cdm.api.service.IReferenceService; |
53 | 55 |
import eu.etaxonomy.cdm.api.service.ITaxonService; |
54 | 56 |
import eu.etaxonomy.cdm.api.service.ITermService; |
... | ... | |
64 | 66 |
import eu.etaxonomy.cdm.model.common.User; |
65 | 67 |
import eu.etaxonomy.cdm.model.description.DescriptionBase; |
66 | 68 |
import eu.etaxonomy.cdm.model.description.DescriptionElementBase; |
69 |
import eu.etaxonomy.cdm.model.description.PolytomousKey; |
|
70 |
import eu.etaxonomy.cdm.model.description.PolytomousKeyNode; |
|
67 | 71 |
import eu.etaxonomy.cdm.model.media.Media; |
68 | 72 |
import eu.etaxonomy.cdm.model.molecular.Sequence; |
69 | 73 |
import eu.etaxonomy.cdm.model.name.NonViralName; |
... | ... | |
239 | 243 |
referencedObject = CdmStore.getService(IDescriptionService.class).loadDescriptionElement(entity, null); |
240 | 244 |
} else if (objectClass.equals(Sequence.class)){ |
241 | 245 |
referencedObject = CdmStore.getService(ISequenceService.class).load(entity, null); |
246 |
} else if (PolytomousKey.class.isAssignableFrom(objectClass)){ |
|
247 |
referencedObject = CdmStore.getService(IPolytomousKeyService.class).load(entity, null); |
|
248 |
} else if (PolytomousKeyNode.class.isAssignableFrom(objectClass)){ |
|
249 |
referencedObject = CdmStore.getService(IPolytomousKeyNodeService.class).load(entity, null); |
|
242 | 250 |
} else if (DefinedTermBase.class.isAssignableFrom(objectClass)){ |
243 | 251 |
referencedObject = CdmStore.getService(ITermService.class).load(entity, null); |
244 | 252 |
} else if (EventBase.class.isAssignableFrom(objectClass)){ |
eu.etaxonomy.taxeditor.editor/plugin.xml | ||
---|---|---|
649 | 649 |
label="%command.label.20" |
650 | 650 |
style="push"> |
651 | 651 |
</command> |
652 |
<separator |
|
653 |
name="taxeditor-editor.separator1" |
|
654 |
visible="true"> |
|
655 |
</separator> |
|
656 | 652 |
<command |
657 | 653 |
commandId="eu.etaxonomy.taxeditor.key.polytomous.delete" |
658 | 654 |
label="%command.label.21" |
... | ... | |
684 | 680 |
label="%command.label.24" |
685 | 681 |
style="push"> |
686 | 682 |
</command> |
683 |
<dynamic |
|
684 |
class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu" |
|
685 |
id="eu.etaxonomy.taxeditor.editor.polytomous.list.cdmViewerContextMenu"> |
|
686 |
</dynamic> |
|
687 | 687 |
<command |
688 | 688 |
commandId="eu.etaxonomy.taxeditor.key.polytomous.command.refresh" |
689 | 689 |
label="%command.label.25" |
... | ... | |
694 | 694 |
label="%command.label.26" |
695 | 695 |
style="push"> |
696 | 696 |
</command> |
697 |
<separator |
|
698 |
name="eu.etaxonomy.taxeditor.editor.separator1"> |
|
699 |
</separator> |
|
697 | 700 |
</menuContribution> |
698 | 701 |
<menuContribution |
699 | 702 |
locationURI="popup:eu.etaxonomy.taxeditor.editor.view.descriptive"> |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/polytomous/PolytomousKeyListEditor.java | ||
---|---|---|
277 | 277 |
|
278 | 278 |
Control control = viewer.getControl(); |
279 | 279 |
Menu menu = menuManager.createContextMenu(control); |
280 |
menuManager.setRemoveAllWhenShown(true); |
|
280 | 281 |
control.setMenu(menu); |
281 | 282 |
} |
282 | 283 |
|
eu.etaxonomy.taxeditor.navigation/plugin.xml | ||
---|---|---|
367 | 367 |
label="%command.label.15" |
368 | 368 |
style="push"> |
369 | 369 |
</command> |
370 |
<dynamic |
|
371 |
class="eu.etaxonomy.taxeditor.view.CdmViewerContextMenu" |
|
372 |
id="eu.etaxonomy.taxeditor.navigation.polytomous.cdmViewerContextMenu"> |
|
373 |
</dynamic> |
|
370 | 374 |
<command |
371 | 375 |
commandId="eu.etaxonomy.taxeditor.navigation.key.polytomous.editNodes" |
372 | 376 |
label="%command.label.16" |
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/key/polytomous/PolytomousKeyViewPart.java | ||
---|---|---|
197 | 197 |
|
198 | 198 |
Control control = viewer.getControl(); |
199 | 199 |
Menu menu = menuManager.createContextMenu(control); |
200 |
menuManager.setRemoveAllWhenShown(true); |
|
200 | 201 |
|
201 | 202 |
control.setMenu(menu); |
202 | 203 |
} |
Also available in: Unified diff
Add "Open in..." menu to polytomous key editors and navigator #5610