Revision 6ba01b22
Added by Patrick Plitzner about 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/handler/RemoveFeatureHandler.java | ||
---|---|---|
19 | 19 |
import eu.etaxonomy.cdm.api.service.IFeatureNodeService; |
20 | 20 |
import eu.etaxonomy.cdm.api.service.config.FeatureNodeDeletionConfigurator; |
21 | 21 |
import eu.etaxonomy.cdm.model.description.FeatureNode; |
22 |
import eu.etaxonomy.cdm.model.description.FeatureTree; |
|
22 | 23 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
23 | 24 |
import eu.etaxonomy.taxeditor.workbench.part.IE4ViewerPart; |
24 | 25 |
|
... | ... | |
46 | 47 |
public boolean canExecute(@Named(IServiceConstants.ACTIVE_PART)MPart thisPart){ |
47 | 48 |
if(thisPart.getObject() instanceof IE4ViewerPart){ |
48 | 49 |
IE4ViewerPart viewerPart = (IE4ViewerPart)thisPart.getObject(); |
49 |
return viewerPart.getSelection()!=null && !viewerPart.getSelection().isEmpty();
|
|
50 |
return viewerPart.getSelection() instanceof FeatureTree;
|
|
50 | 51 |
} |
51 | 52 |
return false; |
52 | 53 |
} |
Also available in: Unified diff
ref #6746 Add details view for feature tree and feature node