Project

General

Profile

« Previous | Next » 

Revision 472f773b

Added by Patrick Plitzner over 5 years ago

fix #7715 Show sources for descriptions in DetailsView

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/details/DetailsViewerE4.java
585 585
        //
586 586
        //        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
587 587

  
588
        //		DescriptionSourceSection descriptionSourceSection = (DescriptionSourceSection) formFactory
589
        //				.createEntityDetailSection(EntityDetailType.DESCRIPTIONSOURCE,
590
        //						getConversationHolder(), parent, Section.TWISTIE);
591
        //
592
        //		formFactory.createHorizontalSeparator(parent, SWT.BORDER);
588
        DescriptionSourceSection descriptionSourceSection = formFactory.createDescriptionSourceSection(
589
                getConversationHolder(), parent, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
590

  
591
        formFactory.createHorizontalSeparator(parent, SWT.BORDER);
593 592

  
594 593
        ScopeSection scopeSection = formFactory.createScopeSection(getConversationHolder(), parent, ExpandableComposite.TWISTIE);
595 594

  
......
598 597
        addPart(descriptionDetailSection);
599 598
        addPart(naturalLanguageSection);
600 599
        //        addPart(describedSpecimenSection);
601
        //		addPart(descriptionSourceSection);
600
        addPart(descriptionSourceSection);
602 601
        addPart(scopeSection);
603 602
    }
604 603

  
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