- completely removed DetailType enum and all its uses
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / taxon / ParsingMessagesSection.java
index af0d316cf39b659ef73810b7035e3d73ef52d129..bf989c41c3a3bbe6a703b7ddfea5845ad565a913 100644 (file)
@@ -1,9 +1,9 @@
 // $Id$
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* 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.
 */
@@ -21,7 +21,7 @@ import eu.etaxonomy.cdm.model.taxon.TaxonBase;
 import eu.etaxonomy.cdm.strategy.parser.ParserProblem;
 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
-import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;
+import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
 import eu.etaxonomy.taxeditor.ui.section.ITaxonBaseDetailSection;
 
@@ -39,7 +39,7 @@ public class ParsingMessagesSection extends AbstractCdmDetailSection<NonViralNam
        /** Constant <code>HEADING_PROBLEM="The name has problems."</code> */
        public static final String HEADING_PROBLEM = "The name has problems.";
        private TaxonBase taxonBase;
-       
+
        /**
         * <p>Constructor for ParsingMessagesSection.</p>
         *
@@ -53,15 +53,16 @@ public class ParsingMessagesSection extends AbstractCdmDetailSection<NonViralNam
                        ISelectionProvider selectionProvider, int style) {
                super(cdmFormFactory, conversation, parentElement, selectionProvider, style);
        }
-       
+
        /** {@inheritDoc} */
        @Override
        protected void createControls(AbstractCdmDetailSection formElement, int style) {
                // we do it differently here
        }
-       
+
        /** {@inheritDoc} */
-       public void setTaxonBase(TaxonBase entity) {
+       @Override
+    public void setTaxonBase(TaxonBase entity) {
                this.taxonBase = entity;
                setEntity((NonViralName) HibernateProxyHelper.deproxy(entity.getName()));
                destroyParsingProblemComposites();
@@ -69,7 +70,7 @@ public class ParsingMessagesSection extends AbstractCdmDetailSection<NonViralNam
                        displayParsingProblems();
                }
        }
-       
+
        private void destroyParsingProblemComposites() {
                setText(HEADING_SUCCESS);
                for(Control control : getLayoutComposite().getChildren()){
@@ -92,12 +93,6 @@ public class ParsingMessagesSection extends AbstractCdmDetailSection<NonViralNam
                return HEADING_SUCCESS;
        }
 
-       /** {@inheritDoc} */
-       @Override
-       protected DetailType getDetailType() {
-               return DetailType.PARSINGMESSAGE;
-       }
-
        /* (non-Javadoc)
         * @see eu.etaxonomy.taxeditor.section.ITaxonDetailSection#getTaxon(eu.etaxonomy.cdm.model.taxon.TaxonBase)
         */
@@ -105,4 +100,13 @@ public class ParsingMessagesSection extends AbstractCdmDetailSection<NonViralNam
        public TaxonBase getTaxonBase() {
                return taxonBase;
        }
+
+       /* (non-Javadoc)
+        * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
+        */
+       @Override
+       protected AbstractCdmDetailElement<NonViralName> createCdmDetailElement(AbstractCdmDetailSection<NonViralName> parentElement, int style) {
+           //no detail element
+           return null;
+       }
 }