Project

General

Profile

Revision 5f352a56

ID5f352a565413ba539d2e911236a11c601c4fc641
Parent 77d90448
Child 233fc0af

Added by Katja Luther over 1 year ago

ref #3836: show modifier part only if recommended modifier voc exist

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/detail/CategoricalDataDetailElement.java
46 46
		section_stateData.setEntity(entity);
47 47
		section_stateData.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
48 48
		createTimePeriod(formElement, entity, style);
49
		createModifier(formElement, entity, style);
49
		if (entity.getFeature().getRecommendedModifierEnumeration() != null){
50
		    createModifier(formElement, entity, style);
51
		}
50 52
	}
51 53

  
52 54
	/* (non-Javadoc)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/detail/CommonNameDetailElement.java
68 68
				entity.getArea(), EntitySelectionElement.NOTHING, style);
69 69

  
70 70
		createTimePeriod(formElement, entity, style);
71
		createModifier(formElement, entity, style);
71
		if (entity.getFeature().getRecommendedModifierEnumeration() != null){
72
            createModifier(formElement, entity, style);
73
        }
74

  
72 75
	}
73 76

  
74 77

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/detail/DistributionDetailElement.java
58 58

  
59 59
        combo_presenceAbsence = formFactory.createTermComboElement(PresenceAbsenceTerm.class, this, "Distribution Status", entity.getStatus(), style);
60 60
        createTimePeriod(formElement, entity, style);
61
        createModifier(formElement, entity, style);
61
        if (entity.getFeature().getRecommendedModifierEnumeration() != null){
62
            createModifier(formElement, entity, style);
63
        }
62 64
	}
63 65

  
64 66
	/** {@inheritDoc} */
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/detail/IndividualsAssociationDetailElement.java
61 61
		}
62 62

  
63 63
		createTimePeriod(formElement, entity, style);
64
		createModifier(formElement, entity, style);
64
		if (entity.getFeature().getRecommendedModifierEnumeration() != null){
65
            createModifier(formElement, entity, style);
66
        }
65 67
	}
66 68

  
67 69
	/** {@inheritDoc} */
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/detail/QuantitativeDataDetailElement.java
7 7

  
8 8
import org.eclipse.ui.forms.widgets.ExpandableComposite;
9 9

  
10
import eu.etaxonomy.cdm.model.term.TermType;
11 10
import eu.etaxonomy.cdm.model.description.MeasurementUnit;
12 11
import eu.etaxonomy.cdm.model.description.QuantitativeData;
12
import eu.etaxonomy.cdm.model.term.TermType;
13 13
import eu.etaxonomy.taxeditor.ui.combo.TermComboElement;
14 14
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
15 15
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
......
51 51
		section_statisticalMeasurementValues = formFactory.createStatisticalMeasurementValueSection(getConversationHolder(), formElement, ExpandableComposite.TWISTIE | ExpandableComposite.EXPANDED);
52 52
		section_statisticalMeasurementValues.setEntity(entity);
53 53
		section_statisticalMeasurementValues.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
54
		if (entity.getFeature().getRecommendedModifierEnumeration() != null){
55
            createModifier(formElement, entity, style);
56
        }
54 57
	}
55 58

  
56 59
	/** {@inheritDoc} */
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/detail/TaxonInteractionDetailElement.java
79 79
                    CdmStore.getDefaultLanguage()).getText());
80 80
        }
81 81
        createTimePeriod(formElement, entity, style);
82
        createModifier(formElement, entity, style);
82
        if (entity.getFeature().getRecommendedModifierEnumeration() != null){
83
            createModifier(formElement, entity, style);
84
        }
83 85
	}
84 86

  
85 87
	/** {@inheritDoc} */

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)