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 f913508c222af6f05df1e24807f26cb253beff8a..69d248196aeb92019075d55b284af566eb914f3b 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 8868fdf906c82507473a36e4b7bbeccb37be6834..7eb029ea11044df3d8ee7dc68d5d5ad5dd5eec19 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 724bd82f6d15640570c8fa96f4c56bed5857659b..30e611c7ad6a592091c0941d7086ed6722942b82 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 5f6e4d1d57e9819b37516ddc38a75f69615e9a8d..767fe11e3e158ef1794e5656475b269a8e4e4703 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 f5fabf873aa44798deed3c3dbcf0aacb16566edd..fb17ab5f5addf0feb3b3c3e5cb9d3e1fcd12d9c0 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 f4a12cb1e4ded764fc5d4b17983d7ca366a4076b..b4a0c868c449db09a1ec9d1329169052e8df2071 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 654fff7f739518593874987bf8b35b3c48174cb4..d875d3529f2eb322228939501cd75679740575c8 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;
        }
-
 }