Revision 68b83178
Added by Andreas Müller over 10 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/DerivedUnitFacadeDetailElement.java | ||
---|---|---|
39 | 39 |
private GeneralDetailSection section_general; |
40 | 40 |
private GatheringEventDetailSection section_gatheringEvent; |
41 | 41 |
private DerivedUnitBaseDetailSection section_derivedUnitBase; |
42 |
private FieldUnitDetailSection section_fieldObservation;
|
|
42 |
private FieldUnitDetailSection section_fieldUnit;
|
|
43 | 43 |
|
44 | 44 |
/** |
45 | 45 |
* <p>Constructor for DerivedUnitFacadeDetailElement.</p> |
... | ... | |
65 | 65 |
section_general.setEntity(facade); |
66 | 66 |
section_derivedUnitBase.setEntity(facade); |
67 | 67 |
section_gatheringEvent.setEntity(facade); |
68 |
section_fieldObservation.setEntity(facade);
|
|
68 |
section_fieldUnit.setEntity(facade);
|
|
69 | 69 |
|
70 | 70 |
} catch (DerivedUnitFacadeNotSupportedException e) { |
71 | 71 |
AbstractUtility.errorDialog("Error", this, "SpecimenFacadeNotSupportedException while inititating SpecimenFacade", e); |
... | ... | |
91 | 91 |
section_gatheringEvent.dispose(); |
92 | 92 |
section_gatheringEvent = null; |
93 | 93 |
} |
94 |
if(section_fieldObservation != null){
|
|
95 |
removeControl(section_fieldObservation);
|
|
96 |
section_fieldObservation.dispose();
|
|
97 |
section_fieldObservation = null;
|
|
94 |
if(section_fieldUnit != null){
|
|
95 |
removeControl(section_fieldUnit);
|
|
96 |
section_fieldUnit.dispose();
|
|
97 |
section_fieldUnit = null;
|
|
98 | 98 |
} |
99 | 99 |
} |
100 | 100 |
|
... | ... | |
128 | 128 |
addControl(section_gatheringEvent); |
129 | 129 |
addElement(section_gatheringEvent); |
130 | 130 |
|
131 |
section_fieldObservation = formFactory.createFieldObservationDetailSection(getConversationHolder(), formElement, null, ExpandableComposite.TWISTIE);
|
|
132 |
section_fieldObservation.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
|
|
133 |
addControl(section_fieldObservation);
|
|
134 |
addElement(section_fieldObservation);
|
|
131 |
section_fieldUnit = formFactory.createFieldObservationDetailSection(getConversationHolder(), formElement, null, ExpandableComposite.TWISTIE);
|
|
132 |
section_fieldUnit.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
|
|
133 |
addControl(section_fieldUnit);
|
|
134 |
addElement(section_fieldUnit);
|
|
135 | 135 |
|
136 | 136 |
section_derivedUnitBase = formFactory.createDerivedUnitBaseDetailSection(getConversationHolder(), formElement, null, ExpandableComposite.TWISTIE); |
137 | 137 |
section_derivedUnitBase.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1)); |
... | ... | |
142 | 142 |
/** {@inheritDoc} */ |
143 | 143 |
@Override |
144 | 144 |
public void handleEvent(Object eventSource) { |
145 |
if(eventSource == section_derivedUnitBase || eventSource == section_gatheringEvent || eventSource == section_fieldObservation){
|
|
145 |
if(eventSource == section_derivedUnitBase || eventSource == section_gatheringEvent || eventSource == section_fieldUnit){
|
|
146 | 146 |
if(getParentElement() instanceof AbstractCdmDetailSection) { |
147 | 147 |
((AbstractCdmDetailSection) getParentElement()).updateTitle(); |
148 | 148 |
} |
Also available in: Unified diff
rename FieldObservation -> FieldUnit #3566