Revision 3ce2af15
Added by Andreas Müller about 3 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/AbstractCdmEditorPartE4.java | ||
---|---|---|
133 | 133 |
|
134 | 134 |
protected abstract void selectionChanged_internal(Object selection, MPart activePart, MPart thisPart); |
135 | 135 |
|
136 |
protected boolean showEmptyIfNoActiveEditor(){ |
|
137 |
return true; |
|
138 |
} |
|
139 |
|
|
136 | 140 |
@Inject |
137 | 141 |
public void selectionChanged( |
138 | 142 |
@Optional@Named(IServiceConstants.ACTIVE_SELECTION)Object selection, |
... | ... | |
148 | 152 |
return; |
149 | 153 |
} |
150 | 154 |
// no active editor found |
151 |
if(activePart==thisPart && WorkbenchUtility.getActiveEditorPart(partService)==null){ |
|
155 |
if(activePart==thisPart && WorkbenchUtility.getActiveEditorPart(partService)==null && showEmptyIfNoActiveEditor()){
|
|
152 | 156 |
showEmptyPage(); |
153 | 157 |
return; |
154 | 158 |
} |
Also available in: Unified diff
ref #9541 further fixes for referencing objects and related issues