setting name in case of editing datasource
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / datasource / wizard / CdmDataSourceCredentialsWizardPage.java
index ce01a198a15c74cdc477729bccb0f39b221d9b1d..858214f8782be51b181777868754b8806bd89f11 100644 (file)
@@ -167,8 +167,7 @@ public abstract class CdmDataSourceCredentialsWizardPage extends WizardPage impl
                
                setControl(composite);
                                
-               init();
-
+               init(); 
                                
        }
 
@@ -232,6 +231,8 @@ public abstract class CdmDataSourceCredentialsWizardPage extends WizardPage impl
                if(mode == CdmDataSourceWizard.Mode.CLONE) {
                        getDataSource().setName("");                    
                        text_dataSourceName.setText("");                        
+               } else {
+                       name = text_dataSourceName.getText();
                }
                
        }