Project

General

Profile

« Previous | Next » 

Revision 9a512b18

Added by Patrick Plitzner about 7 years ago

ref #5923 "Open in.." menu restructuring

  • "BulkEditor" option is removed when already in BulkEditor
  • "BulkEditor" added for Specimen Editor

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/CdmViewerUtil.java
15 15
import org.eclipse.core.runtime.IConfigurationElement;
16 16
import org.eclipse.core.runtime.IExtensionRegistry;
17 17
import org.eclipse.core.runtime.Platform;
18
import org.eclipse.jface.viewers.TreeNode;
18 19
import org.eclipse.ui.PlatformUI;
19 20
import org.eclipse.ui.commands.ICommandService;
20 21

  
......
48 49
                UuidAndTitleCache uuidAndTitleCache = (UuidAndTitleCache)input;
49 50
                input = CdmStore.getCommonService().find(uuidAndTitleCache.getType(), uuidAndTitleCache.getUuid());
50 51
            }
52
            //for tree nodes get the value resp. the object of the node
53
            else if (input instanceof TreeNode){
54
                TreeNode treeNode = (TreeNode)input;
55
                input = treeNode.getValue();
56
            }
51 57

  
52 58

  
53 59
            IExtensionRegistry reg = Platform.getExtensionRegistry();

Also available in: Unified diff