cleanup
authorAndreas Müller <a.mueller@bgbm.org>
Mon, 29 Jun 2020 10:58:26 +0000 (12:58 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Mon, 29 Jun 2020 10:58:49 +0000 (12:58 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/AbstractCdmDetailElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/AbstractEventDetailElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/AbstractSpecimenOrObservationDetailElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/CollectingAreaDetailElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/CollectingAreasDetailSection.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/CollectionDetailElement.java
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/CollectionWizardPage.java

index f913508..69d2481 100644 (file)
@@ -43,7 +43,6 @@ import eu.etaxonomy.taxeditor.ui.element.LabelElement;
 import eu.etaxonomy.taxeditor.ui.element.LayoutConstants;
 
 /**
- *
  * @author n.hoffmann
  * @created Feb 26, 2010
  */
@@ -77,9 +76,6 @@ public abstract class AbstractCdmDetailElement<T> extends AbstractCdmFormElement
 
        /**
         * Sets the entity and updates controls
-        *
-        * @param entity
-        *            a T object.
         */
        @Override
     public void setEntity(T entity) {
@@ -171,13 +167,11 @@ public abstract class AbstractCdmDetailElement<T> extends AbstractCdmFormElement
                }
        }
 
-       /** {@inheritDoc} */
        @Override
     public void setEnabled(boolean enabled) {
                setEnabled(enabled, null);
        }
 
-       /** {@inheritDoc} */
        @Override
     public void setIrrelevant(boolean irrelevant) {
                this.irrelevant = irrelevant;
@@ -186,19 +180,10 @@ public abstract class AbstractCdmDetailElement<T> extends AbstractCdmFormElement
 
        /**
         * Create all content elements
-        *
-        * @param formElement
-        *            a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement}
-        *            object.
-        * @param entity
-        *            a T object.
-        * @param style
-        *            a int.
         */
        protected abstract void createControls(ICdmFormElement formElement,
                        T entity, int style);
 
-       /** {@inheritDoc} */
        @Override
        public void propertyChange(PropertyChangeEvent event) {
                if (event == null) {
@@ -253,9 +238,6 @@ public abstract class AbstractCdmDetailElement<T> extends AbstractCdmFormElement
        /**
         * Gets called when the source of the event is a child widget of this
         * widget.
-        *
-        * @param eventSource
-        *            a {@link java.lang.Object} object.
         */
        public abstract void handleEvent(Object eventSource);
 
@@ -278,7 +260,6 @@ public abstract class AbstractCdmDetailElement<T> extends AbstractCdmFormElement
                                "Parent element should be IConversationEnabled");
        }
 
-       /** {@inheritDoc} */
        @Override
     public void update(CdmDataChangeMap changeEvents) {
        }
@@ -290,7 +271,6 @@ public abstract class AbstractCdmDetailElement<T> extends AbstractCdmFormElement
         }
     }
 
-
     protected void updateControlStates(){
         Collection<Object> except = new ArrayList<Object>();
         for(ICdmFormElement formElement:getElements()){
index 8868fdf..7eb029e 100644 (file)
@@ -6,7 +6,6 @@
  * 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;
 
 import org.eclipse.swt.events.SelectionListener;
index 724bd82..30e611c 100644 (file)
@@ -1,3 +1,11 @@
+/**
+ * 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;
 
 import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
@@ -21,7 +29,6 @@ public abstract class AbstractSpecimenOrObservationDetailElement extends Abstrac
                // TODO Auto-generated constructor stub
        }
 
-       /** {@inheritDoc} */
        @Override
        protected void createControls(ICdmFormElement formElement,
                        DerivedUnitFacade entity, int style) {
@@ -32,7 +39,6 @@ public abstract class AbstractSpecimenOrObservationDetailElement extends Abstrac
                combo_sex = formFactory.createDefinedTermComboElement(TermType.Sex, formElement, "Sex", entity.getSex(),style);
        }
 
-       /** {@inheritDoc} */
        @Override
        public void handleEvent(Object eventSource) {
                if(eventSource == combo_kindOfUnit){
index 5f6e4d1..767fe11 100644 (file)
@@ -6,7 +6,6 @@
  * 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;
 
 import org.eclipse.swt.events.SelectionListener;
@@ -19,13 +18,8 @@ import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement;
 import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
 
 /**
- * <p>
- * CollectingAreasDetailElement class.
- * </p>
- *
  * @author n.hoffmann
  * @created Oct 14, 2010
- * @version 1.0
  */
 public class CollectingAreaDetailElement extends
                AbstractEntityCollectionElement<NamedArea> {
@@ -56,27 +50,11 @@ public class CollectingAreaDetailElement extends
                super(formFactory, section, entity, removeListener, null, style);
        }
 
-       /*
-        * (non-Javadoc)
-        *
-        * @see
-        * eu.etaxonomy.taxeditor.section.AbstractEntityCollectionElement#setEntity
-        * (java.lang.Object)
-        */
-       /** {@inheritDoc} */
        @Override
        public void setEntity(NamedArea entity) {
                selection_namedArea.setEntity(entity);
        }
 
-       /*
-        * (non-Javadoc)
-        *
-        * @see
-        * eu.etaxonomy.taxeditor.section.AbstractEntityCollectionElement#createControls
-        * (eu.etaxonomy.taxeditor.forms.ICdmFormElement, int)
-        */
-       /** {@inheritDoc} */
        @Override
        public void createControls(ICdmFormElement formElement, int style) {
                selection_namedArea = formFactory.createSelectionElement(NamedArea.class, //getConversationHolder(),
@@ -84,19 +62,10 @@ public class CollectingAreaDetailElement extends
                                null, EntitySelectionElement.NOTHING, style);
        }
 
-       /*
-        * (non-Javadoc)
-        *
-        * @see
-        * eu.etaxonomy.taxeditor.section.AbstractEntityCollectionElement#handleEvent
-        * (java.lang.Object)
-        */
-       /** {@inheritDoc} */
        @Override
        public void handleEvent(Object eventSource) {
                if (eventSource == selection_namedArea) {
                        setEntity(selection_namedArea.getSelection());
                }
        }
-
 }
index f5fabf8..fb17ab5 100644 (file)
@@ -23,13 +23,8 @@ import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection;
 import eu.etaxonomy.taxeditor.ui.section.DefaultCdmBaseComparator;
 
 /**
- * <p>
- * CollectingAreasDetailSection class.
- * </p>
- *
  * @author n.hoffmann
  * @created Oct 14, 2010
- * @version 1.0
  */
 public class CollectingAreasDetailSection extends AbstractEntityCollectionSection<DerivedUnitFacade, NamedArea> {
 
@@ -46,10 +41,6 @@ public class CollectingAreasDetailSection extends AbstractEntityCollectionSectio
                super(formFactory, conversation, parentElement, "Collecting Areas", style);
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#getCollection(java.lang.Object)
-        */
-       /** {@inheritDoc} */
        @Override
        public Collection<NamedArea> getCollection(DerivedUnitFacade entity) {
                return entity.getCollectingAreas();
@@ -60,10 +51,6 @@ public class CollectingAreasDetailSection extends AbstractEntityCollectionSectio
         return new DefaultCdmBaseComparator<>();
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#createNewElement()
-        */
-       /** {@inheritDoc} */
        @Override
        public NamedArea createNewElement() {
                NamedArea selection = NamedAreaSelectionDialog.select(getLayoutComposite().getShell(), //getConversationHolder(),
@@ -72,56 +59,33 @@ public class CollectingAreasDetailSection extends AbstractEntityCollectionSectio
                return selection;
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#addElement(eu.etaxonomy.cdm.model.common.IVersionableEntity)
-        */
-       /** {@inheritDoc} */
        @Override
        public void addElement(NamedArea element) {
                getEntity().addCollectingArea(element);
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#removeElement(eu.etaxonomy.cdm.model.common.IVersionableEntity)
-        */
-       /** {@inheritDoc} */
        @Override
        public void removeElement(NamedArea element) {
                getEntity().removeCollectingArea(element);
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#getEmptyString()
-        */
-       /** {@inheritDoc} */
        @Override
        public String getEmptyString() {
                return "No collecting areas yet.";
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.section.AbstractEntityCollectionSection#getTooltipString()
-        */
-       /** {@inheritDoc} */
        @Override
        protected String getTooltipString() {
                return "Add a collecting area";
        }
 
-    /**
-     * {@inheritDoc}
-     */
     @Override
     public NamedArea addExisting() {
         return null;
     }
 
-    /**
-     * {@inheritDoc}
-     */
     @Override
     public boolean allowAddExisting() {
         return false;
     }
-
 }
index f4a12cb..b4a0c86 100644 (file)
@@ -19,13 +19,8 @@ import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
 import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
 
 /**
- * <p>
- * CollectionDetailElement class.
- * </p>
- *
  * @author n.hoffmann
  * @created Oct 13, 2010
- * @version 1.0
  */
 public class CollectionDetailElement extends
                AbstractCdmDetailElement<Collection> {
@@ -61,15 +56,6 @@ public class CollectionDetailElement extends
                super(formFactory, formElement);
        }
 
-       /*
-        * (non-Javadoc)
-        *
-        * @see
-        * eu.etaxonomy.taxeditor.section.AbstractCdmDetailElement#createControls
-        * (eu.etaxonomy.taxeditor.forms.ICdmFormElement,
-        * eu.etaxonomy.cdm.model.common.IAnnotatableEntity, int)
-        */
-       /** {@inheritDoc} */
        @Override
        protected void createControls(ICdmFormElement formElement,
                        Collection entity, int style) {
@@ -98,14 +84,6 @@ public class CollectionDetailElement extends
                                                EntitySelectionElement.ALL, style);
        }
 
-       /*
-        * (non-Javadoc)
-        *
-        * @see
-        * eu.etaxonomy.taxeditor.section.AbstractCdmDetailElement#handleEvent(java
-        * .lang.Object)
-        */
-       /** {@inheritDoc} */
        @Override
        public void handleEvent(Object eventSource) {
                if (eventSource == text_titleCache) {
@@ -128,7 +106,5 @@ public class CollectionDetailElement extends
                if (eventSource != text_titleCache) {
                    text_titleCache.setText(getEntity().getTitleCache());
         }
-
        }
-
 }
index 654fff7..d875d35 100644 (file)
@@ -6,7 +6,6 @@
 * 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;
 
 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
@@ -21,7 +20,6 @@ import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
  *
  * @author n.hoffmann
  * @created Oct 13, 2010
- * @version 1.0
  */
 public class CollectionWizardPage extends AbstractCdmEntityWizardPage<Collection> {
 
@@ -38,23 +36,15 @@ public class CollectionWizardPage extends AbstractCdmEntityWizardPage<Collection
                setPageComplete(true);
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.ui.forms.AbstractCdmEntityWizardPage#checkComplete()
-        */
        @Override
        protected void checkComplete() {
                setPageComplete(true);
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.forms.AbstractCdmEntityWizardPage#createElement(eu.etaxonomy.taxeditor.forms.ICdmFormElement)
-        */
-       /** {@inheritDoc} */
        @Override
        public AbstractCdmDetailElement<Collection> createElement(ICdmFormElement rootElement) {
                CollectionDetailElement collectionDetailElement = formFactory.createCollectionDetailElement(rootElement);
                collectionDetailElement.setEntity(entity);
                return collectionDetailElement;
        }
-
 }