Project

General

Profile

« Previous | Next » 

Revision 40005deb

Added by Patrick Plitzner almost 10 years ago

  • added section for "Original Label Data" to DetailsView (#4254)

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/detail/DetailsViewer.java
92 92
import eu.etaxonomy.taxeditor.ui.section.occurrence.FieldUnitDetailSection;
93 93
import eu.etaxonomy.taxeditor.ui.section.occurrence.FieldUnitGeneralDetailSection;
94 94
import eu.etaxonomy.taxeditor.ui.section.occurrence.GatheringEventDetailSection;
95
import eu.etaxonomy.taxeditor.ui.section.occurrence.OriginalLabelDataSection;
95 96
import eu.etaxonomy.taxeditor.ui.section.occurrence.derivedUnit.PreservedSpecimenDetailSection;
96 97
import eu.etaxonomy.taxeditor.ui.section.occurrence.derivedUnit.PreservedSpecimenDeterminationDetailSection;
97 98
import eu.etaxonomy.taxeditor.ui.section.occurrence.derivedUnit.PreservedSpecimenGeneralDetailSection;
......
667 668

  
668 669
            formFactory.createHorizontalSeparator(parent, SWT.BORDER);
669 670

  
671
            OriginalLabelDataSection originalLabelDataSection = formFactory.createOriginalLabelDataSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE);
672
            addPart(originalLabelDataSection);
673

  
674
            formFactory.createHorizontalSeparator(parent, SWT.BORDER);
675

  
670 676
            GatheringEventDetailSection gatheringEventDetailSection = formFactory.createGatheringEventDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE);
671 677
            addPart(gatheringEventDetailSection);
672 678

  
......
693 699

  
694 700
            DerivedUnitBaseDetailSection derivedUnitBaseDetailSection = formFactory.createDerivedUnitBaseDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE);
695 701
            addPart(derivedUnitBaseDetailSection);
696
        }
697 702

  
698

  
699

  
700
        if(!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.DETERMINATION_ONLY_FOR_FIELD_UNITS)){
701 703
            formFactory.createHorizontalSeparator(parent, SWT.BORDER);
704

  
702 705
            DeterminationDetailSection determinationDetailSection = formFactory.createDeterminationDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE);
703 706
            addPart(determinationDetailSection);
704 707
        }
705 708

  
706

  
707 709
    }
708 710

  
709 711
    private void createFieldUnitSection(RootElement parent) {

Also available in: Unified diff