Project

General

Profile

« Previous | Next » 

Revision e3bcee2d

Added by Patrick Plitzner over 9 years ago

  • added interface IDerivedUnitFacadeEditor to tag editors that are working with DerivedUnitFacades (e.g. BulkEditor)
    • show field unit data for DerivedUnit when selected in BulkEditor

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/detail/DetailsViewer.java
52 52
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
53 53
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship;
54 54
import eu.etaxonomy.taxeditor.editor.UsageTermCollection;
55
import eu.etaxonomy.taxeditor.model.AbstractUtility;
55 56
import eu.etaxonomy.taxeditor.model.FeatureNodeContainer;
57
import eu.etaxonomy.taxeditor.model.IDerivedUnitFacadeEditor;
56 58
import eu.etaxonomy.taxeditor.model.PolytomousKeyRelationship;
57 59
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys;
58 60
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
......
669 671
        OriginalLabelDataSection originalLabelDataSection = formFactory.createOriginalLabelDataSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
670 672
        addPart(originalLabelDataSection);
671 673

  
674
        //for editors working with facades
675
        if(AbstractUtility.getActiveEditor() instanceof IDerivedUnitFacadeEditor){
676
            formFactory.createHorizontalSeparator(parent, SWT.BORDER);
677
            GatheringEventDetailSection gatheringEventDetailSection = formFactory.createGatheringEventDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE);
678
            addPart(gatheringEventDetailSection);
679

  
680
            formFactory.createHorizontalSeparator(parent, SWT.BORDER);
681
            FieldUnitDetailSection fieldUnitDetailSection = formFactory.createFieldUnitDetailSection(getConversationHolder(), parent, this, ExpandableComposite.TWISTIE);
682
            addPart(fieldUnitDetailSection);
683
        }
672 684

  
673 685
        if(!PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.DETERMINATION_ONLY_FOR_FIELD_UNITS)){
674 686
            formFactory.createHorizontalSeparator(parent, SWT.BORDER);

Also available in: Unified diff