Revision 6f5407a6
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/details/DetailsPartE4.java | ||
---|---|---|
18 | 18 |
import org.eclipse.jface.viewers.IStructuredSelection; |
19 | 19 |
import org.eclipse.jface.viewers.StructuredSelection; |
20 | 20 |
import org.eclipse.swt.widgets.Composite; |
21 |
import org.eclipse.ui.IEditorPart; |
|
22 | 21 |
|
23 | 22 |
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled; |
24 | 23 |
import eu.etaxonomy.cdm.model.description.Feature; |
... | ... | |
79 | 78 |
showEmptyPage(); |
80 | 79 |
return; |
81 | 80 |
} |
82 |
if((partObject instanceof IEditorPart) || (partObject instanceof IPartContentHasDetails) |
|
83 |
&& partObject instanceof IConversationEnabled) { |
|
81 |
if(partObject instanceof IPartContentHasDetails){ |
|
82 |
if(partObject instanceof IConversationEnabled && ((IConversationEnabled) partObject).getConversationHolder()==null) { |
|
83 |
//TODO show specific message (refactor EmptyElement to allow specific messages) |
|
84 |
showEmptyPage(); |
|
85 |
return; |
|
86 |
} |
|
84 | 87 |
// do not show details for feature nodes TODO strange check to avoid having shown the distribution map for every FeatureNodeContainer |
85 | 88 |
if(structuredSelection.getFirstElement() instanceof FeatureNodeContainer){ |
86 | 89 |
// do show the map for distributions |
Also available in: Unified diff
ref #6905, #6597 Allow saving of editor when view is active