Revision b5b429af
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/handler/MoveSynonymToAnotherAcceptedTaxonHandlerE4.java | ||
---|---|---|
9 | 9 |
import org.apache.log4j.Logger; |
10 | 10 |
import org.eclipse.e4.core.di.annotations.CanExecute; |
11 | 11 |
import org.eclipse.e4.core.di.annotations.Execute; |
12 |
import org.eclipse.e4.ui.di.UISynchronize; |
|
12 | 13 |
import org.eclipse.e4.ui.model.application.ui.basic.MPart; |
13 | 14 |
import org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem; |
14 | 15 |
import org.eclipse.e4.ui.services.IServiceConstants; |
... | ... | |
40 | 41 |
@Execute |
41 | 42 |
public void execute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart, |
42 | 43 |
@Named(IServiceConstants.ACTIVE_SELECTION)IStructuredSelection selection, |
43 |
@Named(IServiceConstants.ACTIVE_SHELL)Shell shell) { |
|
44 |
@Named(IServiceConstants.ACTIVE_SHELL)Shell shell, |
|
45 |
UISynchronize sync) { |
|
44 | 46 |
|
45 | 47 |
editor = (TaxonNameEditorE4) activePart.getObject(); |
46 | 48 |
|
... | ... | |
73 | 75 |
MoveSynonymToAnotherAcceptedTaxonOperationE4 operation = new MoveSynonymToAnotherAcceptedTaxonOperationE4(Messages.MoveSynonymToAnotherAcceptedTaxonHandler_CHANGE_ACC_TAXON, EditorUtil.getUndoContext(), |
74 | 76 |
synonym.getUuid(), newParentNode.getTaxon(), editor, editor); |
75 | 77 |
|
76 |
AbstractUtility.executeOperation(operation); |
|
78 |
AbstractUtility.executeOperation(operation, sync);
|
|
77 | 79 |
} |
78 | 80 |
} |
79 | 81 |
|
Also available in: Unified diff
ref #6925 Inject context into operations to allow sync/async execution