Handle "Finish" button correctly for import wizards
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / io / wizard / ClassificationChooserWizardPage.java
index 716481ae99e61bef28a2185bbea0774b2eb2c1cc..377ccc84ca04ddff8c37b828424d7fd389f8c892 100644 (file)
@@ -36,19 +36,13 @@ public class ClassificationChooserWizardPage extends WizardPage implements Liste
 
        public static final String PAGE_NAME = "ClassificationChooserWizardPage";
 
+       //classification
     private Text textClassification;
     private Classification classification;
     private Button btnBrowseClassification;
 
     private Button btnClear;
 
-       /**
-        * <p>Constructor for ImportFromFileDataSourceWizardPage.</p>
-        *
-        * @param title a {@link java.lang.String} object.
-        * @param description a {@link java.lang.String} object.
-        * @param extensions an array of {@link java.lang.String} objects.
-        */
        protected ClassificationChooserWizardPage(String title, String description) {
                super(PAGE_NAME);
 
@@ -58,20 +52,12 @@ public class ClassificationChooserWizardPage extends WizardPage implements Liste
 
        }
 
-       /**
-        * <p>XML</p>
-        *
-        * @return a {@link eu.etaxonomy.taxeditor.io.wizard.ClassificationChooserWizardPage} object.
-        */
        protected static ClassificationChooserWizardPage createPage(){
-               return new ClassificationChooserWizardPage("Choose Classification", "Note: Selecting no classification will create a default one.");
+               return new ClassificationChooserWizardPage("Configure import destinations", "Note: Selecting no classification will create a default one.");
        }
 
 
 
-       /* (non-Javadoc)
-        * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
-        */
        /** {@inheritDoc} */
        @Override
     public void createControl(Composite parent) {
@@ -81,6 +67,7 @@ public class ClassificationChooserWizardPage extends WizardPage implements Liste
                gridLayout.numColumns = 4;
                composite.setLayout(gridLayout);
 
+               //classification
                Label label = new Label(composite, SWT.NONE);
                label.setText("Classification");
                textClassification = new Text(composite, SWT.NONE);
@@ -96,9 +83,6 @@ public class ClassificationChooserWizardPage extends WizardPage implements Liste
                setControl(composite);
        }
 
-       /* (non-Javadoc)
-        * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets.Event)
-        */
        @Override
        public void handleEvent(Event event) {
            if(event.widget==btnBrowseClassification){
@@ -113,11 +97,11 @@ public class ClassificationChooserWizardPage extends WizardPage implements Liste
            }
        }
 
-
     /**
      * @return the classification
      */
     public Classification getClassification() {
         return classification;
     }
+
 }