fix #9647: set focus to deduplication target
authorKatja Luther <k.luther@bgbm.org>
Wed, 9 Jun 2021 09:14:28 +0000 (11:14 +0200)
committerKatja Luther <k.luther@bgbm.org>
Wed, 9 Jun 2021 09:14:28 +0000 (11:14 +0200)
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/handler/MergeGroupHandlerE4.java

index 9d27cea75c11622393542e76b111ccb55dbe3df1..3b08a95fe148fb4bce96ac4740011b7fa78cc0cc 100644 (file)
@@ -20,6 +20,7 @@ import org.eclipse.e4.ui.model.application.ui.basic.MPart;
 import org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem;
 import org.eclipse.e4.ui.services.IServiceConstants;
 import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.viewers.StructuredSelection;
 import org.eclipse.swt.widgets.Shell;
 
 import eu.etaxonomy.cdm.hibernate.HibernateProxyHelper;
@@ -30,6 +31,8 @@ import eu.etaxonomy.cdm.strategy.merge.MergeException;
 import eu.etaxonomy.taxeditor.bulkeditor.BulkEditorQuery;
 import eu.etaxonomy.taxeditor.bulkeditor.e4.BulkEditor;
 import eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput;
+import eu.etaxonomy.taxeditor.event.EventUtility;
+import eu.etaxonomy.taxeditor.event.WorkbenchEventConstants;
 import eu.etaxonomy.taxeditor.l10n.Messages;
 import eu.etaxonomy.taxeditor.store.CdmStore;
 
@@ -135,6 +138,8 @@ public class MergeGroupHandlerE4 {
         }
         editor.setDirty();
         editor.refresh();
+
+        EventUtility.postAsyncEvent(WorkbenchEventConstants.BULK_EDITOR_SEARCH_FINISHED, new StructuredSelection(mergeTarget));
     }
 
     @CanExecute