Set selection when setting focus to name editor
authorPatrick Plitzner <p.plitzner@bgbm.org>
Fri, 8 Feb 2019 10:00:17 +0000 (11:00 +0100)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Fri, 8 Feb 2019 10:00:24 +0000 (11:00 +0100)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/TaxonNameEditorE4.java

index 3521f8bd0dbc26fa45caeb6e24e919bf22a502a9..6d48be86012249c8e1cb0c21104dd3f8fad68de2 100644 (file)
@@ -258,6 +258,9 @@ public class TaxonNameEditorE4 implements IConversationEnabled, IDirtyMarkable,
             boolean doEnable = permissionsSatisfied();
             managedForm.getForm().setEnabled(doEnable);
         }
             boolean doEnable = permissionsSatisfied();
             managedForm.getForm().setEnabled(doEnable);
         }
+        if(selection!=null){
+            selService.setSelection(new StructuredSelection(selection));
+        }
         eventBroker.post(WorkbenchEventConstants.CURRENT_ACTIVE_EDITOR, this);
     }
 
         eventBroker.post(WorkbenchEventConstants.CURRENT_ACTIVE_EDITOR, this);
     }