Project

General

Profile

« Previous | Next » 

Revision ab153e3d

Added by Patrick Plitzner about 6 years ago

ref #6912 Use e4 UISynchronize for UI refresh

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/datasource/e4/handler/AbstractDataSourceHandlerE4.java
12 12
import javax.inject.Named;
13 13

  
14 14
import org.eclipse.e4.core.di.annotations.Execute;
15
import org.eclipse.e4.ui.di.UISynchronize;
15 16
import org.eclipse.e4.ui.model.application.ui.basic.MPart;
16 17
import org.eclipse.e4.ui.services.IServiceConstants;
17 18
import org.eclipse.e4.ui.workbench.modeling.EPartService;
......
29 30
 */
30 31
public abstract class AbstractDataSourceHandlerE4 {
31 32

  
33
    protected UISynchronize sync;
34

  
32 35
	@Execute
33 36
    public void execute(EPartService partService,
34 37
            @Named(IServiceConstants.ACTIVE_SHELL)Shell shell,
35
            @Named(IServiceConstants.ACTIVE_SELECTION)CdmMetaDataAwareDataSourceContainer container) {
38
            @Named(IServiceConstants.ACTIVE_SELECTION)CdmMetaDataAwareDataSourceContainer container,
39
            UISynchronize sync) {
40

  
41
	    this.sync = sync;
36 42

  
37 43
		MPart dataSourceView = partService.showPart(
38 44
                "eu.etaxonomy.taxeditor.view.datasource",

Also available in: Unified diff