Project

General

Profile

Revision b19855b6

IDb19855b697150250897130b341521e3d9ec1dbca
Parent 89d5a9ad
Child 5f4e7a24

Added by Patrick Plitzner almost 3 years ago

fix #6795 Invoke selection event when setting focus to specimen editor

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/derivate/DerivateView.java
24 24
import org.eclipse.e4.ui.model.application.ui.basic.MPart;
25 25
import org.eclipse.e4.ui.services.EMenuService;
26 26
import org.eclipse.e4.ui.services.IServiceConstants;
27
import org.eclipse.e4.ui.workbench.modeling.EPartService;
28 27
import org.eclipse.e4.ui.workbench.modeling.ESelectionService;
29 28
import org.eclipse.jface.util.LocalSelectionTransfer;
30 29
import org.eclipse.jface.viewers.AbstractTreeViewer;
......
148 147
    @Inject
149 148
    private MDirtyable dirty;
150 149

  
151
    @Inject
152
    private EPartService partService;
153

  
154 150
    private ISelectionChangedListener selectionChangedListener;
155 151

  
156 152
    /**
......
361 357
        if(cdmEntitySession != null) {
362 358
            cdmEntitySession.bind();
363 359
        }
364
        if(derivateSearchCompositeController!=null) {
365
            derivateSearchCompositeController.setFocusOnSearchField();
360
        if(viewer!=null) {
361
            viewer.getControl().setFocus();
362
            selService.setSelection(viewer.getSelection());
366 363
        }
367 364
    }
368 365

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)