Project

General

Profile

« Previous | Next » 

Revision 20fa89e3

Added by Patrick Plitzner over 6 years ago

fix #6809 add selection delay to parts

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/concept/e4/ConceptViewPartE4.java
13 13

  
14 14
import javax.annotation.PostConstruct;
15 15
import javax.inject.Inject;
16
import javax.inject.Named;
17 16

  
18
import org.eclipse.e4.core.di.annotations.Optional;
19 17
import org.eclipse.e4.ui.model.application.ui.basic.MPart;
20 18
import org.eclipse.e4.ui.services.EMenuService;
21
import org.eclipse.e4.ui.services.IServiceConstants;
22 19
import org.eclipse.e4.ui.workbench.modeling.ESelectionService;
23 20
import org.eclipse.jface.viewers.ISelection;
24 21
import org.eclipse.jface.viewers.ISelectionChangedListener;
......
60 57
    @Inject
61 58
    private ESelectionService selService;
62 59

  
63
    @Inject
64
    @Optional
65
    public void selectionChanged(
66
            @Named(IServiceConstants.ACTIVE_SELECTION)Object selection,
67
            @Named(IServiceConstants.ACTIVE_PART)MPart activePart,
68
            MPart thisPart){
60
    @Override
61
    public void selectionChanged_internal(Object selection, MPart activePart, MPart thisPart) {
69 62
        if(activePart==thisPart){
70 63
            return;
71 64
        }

Also available in: Unified diff