Revision e97b77c6
Added by Patrick Plitzner over 9 years ago
- added preference for displaying associated taxa in specimen details view
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/detail/DetailsViewer.java | ||
---|---|---|
656 | 656 |
private void createDerivedUnitBaseElementSection(RootElement parent) { |
657 | 657 |
destroySections(); |
658 | 658 |
|
659 |
//different order of sections (Specimen Details as second section and expanded) |
|
660 |
if(PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.DETERMINATION_ONLY_FOR_FIELD_UNITS)){ |
|
661 |
DerivedUnitGeneralDetailSection derivedUnitGeneralDetailSection = formFactory.createDerivedUnitGeneralDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); |
|
662 |
addPart(derivedUnitGeneralDetailSection); |
|
663 |
|
|
664 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
665 |
|
|
666 |
DerivedUnitBaseDetailSection derivedUnitBaseDetailSection = formFactory.createDerivedUnitBaseDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); |
|
667 |
addPart(derivedUnitBaseDetailSection); |
|
668 |
|
|
669 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
670 |
|
|
671 |
OriginalLabelDataSection originalLabelDataSection = formFactory.createOriginalLabelDataSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); |
|
672 |
addPart(originalLabelDataSection); |
|
659 |
DerivedUnitGeneralDetailSection derivedUnitGeneralDetailSection = formFactory.createDerivedUnitGeneralDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); |
|
660 |
addPart(derivedUnitGeneralDetailSection); |
|
673 | 661 |
|
674 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
675 |
|
|
676 |
TaxonAssociationDetailSection taxonAssociationDetailSection = formFactory.createTaxonAssociationDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); |
|
677 |
addPart(taxonAssociationDetailSection); |
|
678 |
} |
|
679 |
else{ |
|
680 |
DerivedUnitGeneralDetailSection derivedUnitGeneralDetailSection = formFactory.createDerivedUnitGeneralDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); |
|
681 |
addPart(derivedUnitGeneralDetailSection); |
|
682 |
|
|
683 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
684 |
|
|
685 |
GatheringEventDetailSection gatheringEventDetailSection = formFactory.createGatheringEventDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE); |
|
686 |
addPart(gatheringEventDetailSection); |
|
662 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
687 | 663 |
|
688 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
664 |
DerivedUnitBaseDetailSection derivedUnitBaseDetailSection = formFactory.createDerivedUnitBaseDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); |
|
665 |
addPart(derivedUnitBaseDetailSection); |
|
689 | 666 |
|
690 |
FieldUnitDetailSection fieldUnitDetailSection = formFactory.createFieldUnitDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE); |
|
691 |
addPart(fieldUnitDetailSection); |
|
667 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
692 | 668 |
|
693 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
669 |
OriginalLabelDataSection originalLabelDataSection = formFactory.createOriginalLabelDataSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); |
|
670 |
addPart(originalLabelDataSection); |
|
694 | 671 |
|
695 |
DerivedUnitBaseDetailSection derivedUnitBaseDetailSection = formFactory.createDerivedUnitBaseDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE); |
|
696 |
addPart(derivedUnitBaseDetailSection); |
|
697 | 672 |
|
673 |
if(!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.DETERMINATION_ONLY_FOR_FIELD_UNITS)){ |
|
698 | 674 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
699 |
|
|
700 | 675 |
DeterminationDetailSection determinationDetailSection = formFactory.createDeterminationDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE); |
701 | 676 |
addPart(determinationDetailSection); |
702 | 677 |
} |
678 |
if(PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_TAXON_ASSOCIATIONS)){ |
|
679 |
formFactory.createHorizontalSeparator(parent, SWT.BORDER); |
|
680 |
TaxonAssociationDetailSection taxonAssociationDetailSection = formFactory.createTaxonAssociationDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED); |
|
681 |
addPart(taxonAssociationDetailSection); |
|
682 |
} |
|
703 | 683 |
|
704 | 684 |
} |
705 | 685 |
|
Also available in: Unified diff