Revision 472f773b
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/supplementaldata/SupplementalDataViewerE4.java | ||
---|---|---|
20 | 20 |
import eu.etaxonomy.cdm.model.common.AnnotatableEntity; |
21 | 21 |
import eu.etaxonomy.cdm.model.common.IdentifiableEntity; |
22 | 22 |
import eu.etaxonomy.cdm.model.common.VersionableEntity; |
23 |
import eu.etaxonomy.cdm.model.description.DescriptionBase; |
|
23 | 24 |
import eu.etaxonomy.cdm.model.media.IdentifiableMediaEntity; |
24 | 25 |
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap; |
25 | 26 |
import eu.etaxonomy.taxeditor.event.WorkbenchEventConstants; |
... | ... | |
123 | 124 |
|
124 | 125 |
private void createIdentifiableSections(RootElement parent) { |
125 | 126 |
|
126 |
SourceSection sourceSection = formFactory.createSourceSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE); |
|
127 |
|
|
128 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
127 |
if(!(getInput() instanceof DescriptionBase)){ |
|
128 |
//sources are shown in DetailsView for Descriptions |
|
129 |
SourceSection sourceSection = formFactory.createSourceSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE); |
|
130 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
131 |
addPart(sourceSection); |
|
132 |
} |
|
129 | 133 |
|
130 | 134 |
IdentifierSection identifierSection = formFactory.createIdentifierDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE); |
131 | 135 |
|
... | ... | |
143 | 147 |
|
144 | 148 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
145 | 149 |
|
146 |
addPart(sourceSection); |
|
147 | 150 |
addPart(identifierSection); |
148 | 151 |
addPart(extensionSection); |
149 | 152 |
addPart(creditSection); |
Also available in: Unified diff
fix #7715 Show sources for descriptions in DetailsView