//
// formFactory.createHorizontalSeparator(parent, SWT.BORDER);
- // DescriptionSourceSection descriptionSourceSection = (DescriptionSourceSection) formFactory
- // .createEntityDetailSection(EntityDetailType.DESCRIPTIONSOURCE,
- // getConversationHolder(), parent, Section.TWISTIE);
- //
- // formFactory.createHorizontalSeparator(parent, SWT.BORDER);
+ DescriptionSourceSection descriptionSourceSection = formFactory.createDescriptionSourceSection(
+ getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
+
+ formFactory.createHorizontalSeparator(parent, SWT.BORDER);
ScopeSection scopeSection = formFactory.createScopeSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
addPart(descriptionDetailSection);
addPart(naturalLanguageSection);
// addPart(describedSpecimenSection);
- // addPart(descriptionSourceSection);
+ addPart(descriptionSourceSection);
addPart(scopeSection);
}
import eu.etaxonomy.cdm.model.common.AnnotatableEntity;
import eu.etaxonomy.cdm.model.common.IdentifiableEntity;
import eu.etaxonomy.cdm.model.common.VersionableEntity;
+import eu.etaxonomy.cdm.model.description.DescriptionBase;
import eu.etaxonomy.cdm.model.media.IdentifiableMediaEntity;
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap;
import eu.etaxonomy.taxeditor.event.WorkbenchEventConstants;
private void createIdentifiableSections(RootElement parent) {
- SourceSection sourceSection = formFactory.createSourceSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
-
- formFactory.createHorizontalSeparator(parent, SWT.BORDER);
+ if(!(getInput() instanceof DescriptionBase)){
+ //sources are shown in DetailsView for Descriptions
+ SourceSection sourceSection = formFactory.createSourceSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
+ formFactory.createHorizontalSeparator(parent, SWT.BORDER);
+ addPart(sourceSection);
+ }
IdentifierSection identifierSection = formFactory.createIdentifierDetailSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
formFactory.createHorizontalSeparator(parent, SWT.BORDER);
- addPart(sourceSection);
addPart(identifierSection);
addPart(extensionSection);
addPart(creditSection);