New wizards are not finishable when no data was entered
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / classification / ClassificationWizardPage.java
index 1982f872f9980cc190ec4b9910de99df539ccc0d..6817beb2bb385758bd9a808bd56e0d8c88ebee72 100644 (file)
@@ -1,16 +1,15 @@
 // $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.classification;
 
-
 import org.eclipse.swt.SWT;
 
 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
@@ -21,35 +20,52 @@ import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory.DetailType;
 import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement;
 
 /**
- * <p>ClassificationWizardPage class.</p>
- *
+ * <p>
+ * ClassificationWizardPage class.
+ * </p>
+ * 
  * @author n.hoffmann
  * @created 23.06.2009
  * @version 1.0
  */
-public class ClassificationWizardPage extends AbstractCdmEntityWizardPage<Classification>{
-       
+public class ClassificationWizardPage extends
+               AbstractCdmEntityWizardPage<Classification> {
+
        /**
-        * <p>Constructor for ClassificationWizardPage.</p>
-        *
-        * @param formFactory a {@link eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory} object.
-        * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
-        * @param entity a {@link eu.etaxonomy.cdm.model.taxon.TaxonomicTree} object.
+        * <p>
+        * Constructor for ClassificationWizardPage.
+        * </p>
+        * 
+        * @param formFactory
+        *            a {@link eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory}
+        *            object.
+        * @param conversation
+        *            a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder}
+        *            object.
+        * @param entity
+        *            a {@link eu.etaxonomy.cdm.model.taxon.TaxonomicTree} object.
         */
-       public ClassificationWizardPage(CdmFormFactory formFactory, ConversationHolder conversation, Classification entity){
+       public ClassificationWizardPage(CdmFormFactory formFactory,
+                       ConversationHolder conversation, Classification entity) {
                super(formFactory, conversation, entity);
                setTitle("Classification");
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.forms.AbstractCdmEntityWizardPage#createElement(eu.etaxonomy.taxeditor.forms.ICdmFormElement)
+       /*
+        * (non-Javadoc)
+        * 
+        * @see
+        * eu.etaxonomy.taxeditor.forms.AbstractCdmEntityWizardPage#createElement
+        * (eu.etaxonomy.taxeditor.forms.ICdmFormElement)
         */
        /** {@inheritDoc} */
        @Override
        public ClassificationDetailElement createElement(ICdmFormElement rootElement) {
-               ClassificationDetailElement detailElement = (ClassificationDetailElement) formFactory.createCdmDetailElement(DetailType.CLASSIFICATION, rootElement, SWT.NULL);
+               ClassificationDetailElement detailElement = (ClassificationDetailElement) formFactory
+                               .createCdmDetailElement(DetailType.CLASSIFICATION, rootElement,
+                                               SWT.NULL);
                detailElement.setEntity(getEntity());
-               
+
                return detailElement;
        }
 }