Removed all calls to active menu selection (fixes #1106)
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / view / descriptive / handler / CreateDescriptionElementHandler.java
index f388f018e6c7fd1a395ee1592af78092e7c75b9e..65d4d3d5d20d0360f46577c702414204388ba342 100644 (file)
@@ -66,7 +66,7 @@ public class CreateDescriptionElementHandler extends AbstractHandler {
 
                        TaxonDescription description = null;
 
-                       ISelection selection = HandlerUtil.getActiveMenuSelection(event);
+                       ISelection selection = HandlerUtil.getCurrentSelection(event);
                        if (selection instanceof ITreeSelection) {
                                TreePath[] paths = ((ITreeSelection) selection).getPaths();
                                Object firstSegment = paths[0].getFirstSegment();