setting name in case of editing datasource
authorCherian Mathew <c.mathew@bgbm.org>
Tue, 13 May 2014 10:29:26 +0000 (10:29 +0000)
committerCherian Mathew <c.mathew@bgbm.org>
Tue, 13 May 2014 10:29:26 +0000 (10:29 +0000)
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);
                                
                
                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("");                        
                if(mode == CdmDataSourceWizard.Mode.CLONE) {
                        getDataSource().setName("");                    
                        text_dataSourceName.setText("");                        
+               } else {
+                       name = text_dataSourceName.getText();
                }
                
        }
                }
                
        }