Revision b5b429af
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/polytomous/e4/handler/RefreshNodeNumberingHandlerE4.java | ||
---|---|---|
4 | 4 |
|
5 | 5 |
import org.eclipse.core.commands.operations.IUndoContext; |
6 | 6 |
import org.eclipse.e4.core.di.annotations.Execute; |
7 |
import org.eclipse.e4.ui.di.UISynchronize; |
|
7 | 8 |
import org.eclipse.e4.ui.model.application.ui.basic.MPart; |
8 | 9 |
import org.eclipse.e4.ui.model.application.ui.menu.MHandledMenuItem; |
9 | 10 |
import org.eclipse.e4.ui.services.IServiceConstants; |
... | ... | |
21 | 22 |
@Execute |
22 | 23 |
public void execute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart, |
23 | 24 |
@Named(IServiceConstants.ACTIVE_SELECTION)IStructuredSelection selection, |
24 |
MHandledMenuItem menuItem){ |
|
25 |
MHandledMenuItem menuItem, |
|
26 |
UISynchronize sync){ |
|
25 | 27 |
|
26 | 28 |
PolytomousKeyListEditorE4 editor = (PolytomousKeyListEditorE4) activePart.getObject(); |
27 | 29 |
|
... | ... | |
34 | 36 |
|
35 | 37 |
AbstractPostOperation operation = new RefreshNodeNumberingOperation( |
36 | 38 |
label, undoContext, keyNode, editor); |
37 |
AbstractUtility.executeOperation(operation); |
|
39 |
AbstractUtility.executeOperation(operation, sync);
|
|
38 | 40 |
} |
39 | 41 |
} |
40 | 42 |
|
Also available in: Unified diff
ref #6925 Inject context into operations to allow sync/async execution