Fixes #2312
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / occurrence / NamedAreaDetailElement.java
index 1310c32f1e4b67b96ba01bb7d7040374e6e58ad0..6af90afd8039302657a0382b37141dad8b7f40bb 100644 (file)
@@ -1,12 +1,12 @@
 // $Id$
 /**
-* Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
-* http://www.e-taxonomy.eu
-* 
-* The contents of this file are subject to the Mozilla Public License Version 1.1
-* See LICENSE.TXT at the top of this package for the full license terms.
-*/
+ * Copyright (C) 2007 EDIT
+ * European Distributed Institute of Taxonomy 
+ * http://www.e-taxonomy.eu
+ 
+ * The contents of this file are subject to the Mozilla Public License Version 1.1
+ * See LICENSE.TXT at the top of this package for the full license terms.
+ */
 
 package eu.etaxonomy.taxeditor.ui.section.occurrence;
 
@@ -20,8 +20,10 @@ import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement;
 import eu.etaxonomy.taxeditor.ui.selection.NamedAreaSelectionElement;
 
 /**
- * <p>CollectingAreasDetailElement class.</p>
- *
+ * <p>
+ * CollectingAreasDetailElement class.
+ * </p>
+ * 
  * @author n.hoffmann
  * @created Oct 14, 2010
  * @version 1.0
@@ -30,15 +32,24 @@ public class NamedAreaDetailElement extends
                AbstractEntityCollectionElement<NamedArea> {
 
        private NamedAreaSelectionElement selection_namedArea;
-       
+
        /**
-        * <p>Constructor for CollectingAreasDetailElement.</p>
-        *
-        * @param formFactory a {@link eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory} object.
-        * @param section a {@link eu.etaxonomy.taxeditor.ui.forms.AbstractFormSection} object.
-        * @param entity a {@link eu.etaxonomy.cdm.model.location.NamedArea} object.
-        * @param removeListener a {@link org.eclipse.swt.events.SelectionListener} object.
-        * @param style a int.
+        * <p>
+        * Constructor for CollectingAreasDetailElement.
+        * </p>
+        * 
+        * @param formFactory
+        *            a {@link eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory}
+        *            object.
+        * @param section
+        *            a {@link eu.etaxonomy.taxeditor.ui.forms.AbstractFormSection}
+        *            object.
+        * @param entity
+        *            a {@link eu.etaxonomy.cdm.model.location.NamedArea} object.
+        * @param removeListener
+        *            a {@link org.eclipse.swt.events.SelectionListener} object.
+        * @param style
+        *            a int.
         */
        public NamedAreaDetailElement(CdmFormFactory formFactory,
                        AbstractFormSection section, NamedArea entity,
@@ -46,8 +57,12 @@ public class NamedAreaDetailElement extends
                super(formFactory, section, entity, removeListener, null, style);
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionElement#setEntity(java.lang.Object)
+       /*
+        * (non-Javadoc)
+        * 
+        * @see
+        * eu.etaxonomy.taxeditor.section.AbstractEntityCollectionElement#setEntity
+        * (java.lang.Object)
         */
        /** {@inheritDoc} */
        @Override
@@ -55,22 +70,31 @@ public class NamedAreaDetailElement extends
                selection_namedArea.setEntity(entity);
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionElement#createControls(eu.etaxonomy.taxeditor.forms.ICdmFormElement, int)
+       /*
+        * (non-Javadoc)
+        * 
+        * @see
+        * eu.etaxonomy.taxeditor.section.AbstractEntityCollectionElement#createControls
+        * (eu.etaxonomy.taxeditor.forms.ICdmFormElement, int)
         */
        /** {@inheritDoc} */
        @Override
        public void createControls(ICdmFormElement element, int style) {
-               selection_namedArea = formFactory.createNamedAreaSelectionElement(element, getConversationHolder(), "Area", null, style);
+               selection_namedArea = formFactory.createNamedAreaSelectionElement(
+                               element, getConversationHolder(), "Area", null, style);
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionElement#handleEvent(java.lang.Object)
+       /*
+        * (non-Javadoc)
+        * 
+        * @see
+        * eu.etaxonomy.taxeditor.section.AbstractEntityCollectionElement#handleEvent
+        * (java.lang.Object)
         */
        /** {@inheritDoc} */
        @Override
        public void handleEvent(Object eventSource) {
-               if(eventSource == selection_namedArea){
+               if (eventSource == selection_namedArea) {
                        setEntity(selection_namedArea.getSelection());
                }
        }