Project

General

Profile

« Previous | Next » 

Revision b5b429af

Added by Patrick Plitzner over 6 years ago

ref #6925 Inject context into operations to allow sync/async execution

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/key/polytomous/e4/handler/RefreshPolytomousKeyNodesHandlerE4.java
19 19
import org.eclipse.core.runtime.Status;
20 20
import org.eclipse.core.runtime.jobs.Job;
21 21
import org.eclipse.e4.core.di.annotations.Execute;
22
import org.eclipse.e4.ui.di.UISynchronize;
22 23
import org.eclipse.e4.ui.model.application.ui.basic.MPart;
23 24
import org.eclipse.e4.ui.services.IServiceConstants;
24 25
import org.eclipse.swt.widgets.Display;
......
44 45
    private static final String REFRESHING_POLYTOMOUS_KEY_NODES = Messages.RefreshPolytomousKeyNodesHandler_REFRESHING;
45 46

  
46 47
    @Execute
47
    public void execute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart) {
48
    public void execute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart,
49
            UISynchronize sync) {
48 50

  
49 51
        PolytomousKeyViewPartE4 view = (PolytomousKeyViewPartE4) activePart.getObject();
50 52

  
......
69 71
										@Override
70 72
										public void run() {
71 73
											AbstractPostOperation operation = new RefreshNodesOperation(label, undoContext, key, view);
72
											AbstractUtility.executeOperation(operation);
74
											AbstractUtility.executeOperation(operation, sync);
73 75
										}
74 76

  
75 77
									});

Also available in: Unified diff