ref #10186 remove ConversationHolder from many forms and some more cleanup
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / description / DescriptionSourceSection.java
index 94ee45fd026387b84b3420c675658fe263b9f713..cabb22af50a3eb9c2e129b65aed3ce10ac8fef73 100644 (file)
@@ -6,61 +6,42 @@
 * 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.description;
 
 import java.util.Collection;
 import java.util.Comparator;
 
-import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
 import eu.etaxonomy.cdm.model.common.IdentifiableSource;
-import eu.etaxonomy.cdm.model.reference.OriginalSourceType;
 import eu.etaxonomy.cdm.model.description.DescriptionBase;
+import eu.etaxonomy.cdm.model.reference.OriginalSourceType;
 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
 import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionSection;
 import eu.etaxonomy.taxeditor.ui.section.DefaultCdmBaseComparator;
 
 /**
- * <p>DescriptionSourceSection class.</p>
- *
  * @author n.hoffmann
  * @created Mar 18, 2010
- * @version 1.0
  */
 public class DescriptionSourceSection extends
                AbstractEntityCollectionSection<DescriptionBase, IdentifiableSource>{
 
-       /**
-        * <p>Constructor for DescriptionSourceSection.</p>
-        *
-        * @param cdmFormFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
-        * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
-        * @param parentElement a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
-        * @param style a int.
-        */
-       public DescriptionSourceSection(CdmFormFactory cdmFormFactory, ConversationHolder conversation,
+       public DescriptionSourceSection(CdmFormFactory cdmFormFactory,
                        ICdmFormElement parentElement, int style) {
-               super(cdmFormFactory, conversation, parentElement, "Sources", style);
+               super(cdmFormFactory, parentElement, "Sources", style);
        }
 
-
-
-       /** {@inheritDoc} */
        @Override
        public void addElement(IdentifiableSource element) {
                getEntity().addSource(element);
        }
 
-       /** {@inheritDoc} */
        @Override
        public IdentifiableSource createNewElement() {
                OriginalSourceType ost = OriginalSourceType.PrimaryTaxonomicSource;
                return IdentifiableSource.NewInstance(ost);
-
        }
 
-       /** {@inheritDoc} */
        @Override
        public Collection<IdentifiableSource> getCollection(DescriptionBase entity) {
                return entity.getSources();
@@ -71,41 +52,28 @@ public class DescriptionSourceSection extends
         return new DefaultCdmBaseComparator<>();
        }
 
-       /** {@inheritDoc} */
        @Override
        public String getEmptyString() {
                return "No description sources yet.";
        }
 
-       /** {@inheritDoc} */
        @Override
        protected String getTooltipString() {
                return "Add a reference as source for this description";
        }
 
-       /** {@inheritDoc} */
        @Override
        public void removeElement(IdentifiableSource element) {
                getEntity().removeSource(element);
        }
 
-
-
-    /**
-     * {@inheritDoc}
-     */
     @Override
     public IdentifiableSource addExisting() {
         return null;
     }
 
-
-
-    /**
-     * {@inheritDoc}
-     */
     @Override
     public boolean allowAddExisting() {
         return false;
     }
-}
+}
\ No newline at end of file