- DerivedUnits DetailsView only shows FieldUnit data in titleCache (fixes #4474)
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / occurrence / GatheringEventDetailElement.java
index 73af807ee5d6cb342285672fd45d1379466f9443..c1e9e98cfee179399d373d82643c4e82055428dd 100644 (file)
 
 package eu.etaxonomy.taxeditor.ui.section.occurrence;
 
-import org.eclipse.ui.forms.widgets.ExpandableComposite;
-
 import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
 import eu.etaxonomy.taxeditor.ui.element.GatheringEventUnitElement;
 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
-import eu.etaxonomy.taxeditor.ui.element.LayoutConstants;
 import eu.etaxonomy.taxeditor.ui.element.MinMaxTextSection;
 import eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement;
 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
@@ -36,15 +33,13 @@ public class GatheringEventDetailElement extends
        private GatheringEventUnitElement element_elevation;
 
        private GatheringEventUnitElement element_distToGround;
-       
+
        private GatheringEventUnitElement element_distToWater;
-       
+
        private TextWithLabelElement text_collectingMethod;
 
        private TextWithLabelElement text_gatheringEventDescription;
 
-       private CollectingAreasDetailSection section_collectingAreas;
-
        /**
         * <p>
         * Constructor for GatheringEventDetailElement.
@@ -65,30 +60,16 @@ public class GatheringEventDetailElement extends
        /** {@inheritDoc} */
        @Override
        protected void createControls(ICdmFormElement formElement, DerivedUnitFacade entity, int style) {
-               
-
-               // collectingArea
-
-
         text_collectingMethod = formFactory.createTextWithLabelElement(formElement, "Collecting Method", entity.getCollectingMethod(), style);
 
-
-               // exactLocation
         text_gatheringEventDescription = formFactory.createTextWithLabelElement(
                        formElement, "Gathering Event Description", entity.getGatheringEventDescription(), style);
-//             element_elevation = formFactory.createGatheringEventUnitElement(
-//                             formElement, "Elevation : ", entity, MinMaxTextSection.UnitType.ELEVATION,  style);
-               
-               
+
                element_distToGround = formFactory.createGatheringEventUnitElement(
                                formElement, "Dist. To Ground : ", entity, MinMaxTextSection.UnitType.DIST_TO_GROUND,  style);
-               
+
                element_distToWater = formFactory.createGatheringEventUnitElement(
                                formElement, "Dist. To Watersurface : ", entity, MinMaxTextSection.UnitType.DIST_TO_WATER,  style);
-               
-        section_collectingAreas = formFactory.createCollectingAreasDetailSection(getConversationHolder(), formElement, ExpandableComposite.TWISTIE);
-        section_collectingAreas.setLayoutData(LayoutConstants.FILL_HORIZONTALLY(2, 1));
-               section_collectingAreas.setEntity(entity);
 
        }