Revision ebbcecad
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/AbstractCdmEditorPartE4.java | ||
---|---|---|
19 | 19 |
import org.eclipse.e4.ui.di.UISynchronize; |
20 | 20 |
import org.eclipse.e4.ui.model.application.ui.basic.MPart; |
21 | 21 |
import org.eclipse.e4.ui.services.IServiceConstants; |
22 |
import org.eclipse.e4.ui.workbench.modeling.EPartService; |
|
22 | 23 |
import org.eclipse.e4.ui.workbench.modeling.ESelectionService; |
23 | 24 |
import org.eclipse.jface.viewers.ISelectionChangedListener; |
24 | 25 |
import org.eclipse.jface.viewers.IStructuredSelection; |
... | ... | |
122 | 123 |
public void selectionChanged( |
123 | 124 |
@Optional@Named(IServiceConstants.ACTIVE_SELECTION)Object selection, |
124 | 125 |
@Optional@Named(IServiceConstants.ACTIVE_PART)MPart activePart, |
125 |
MPart thisPart, UISynchronize sync){ |
|
126 |
if(activePart==thisPart && EventUtility.getTaxonEditor()==null){
|
|
126 |
MPart thisPart, UISynchronize sync, EPartService partService){
|
|
127 |
if(activePart==thisPart && EventUtility.getActiveEditorPart(partService)==null){
|
|
127 | 128 |
showEmptyPage(); |
128 | 129 |
return; |
129 | 130 |
} |
Also available in: Unified diff
ref #6925 Fix selection handling for editor parts