refactoring to change the specific (I)CdmDataSource to the more generic (I)CdmSource...
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / view / datasource / handler / ChangeConnectionHandler.java
index ff812e4d4b5651ee61d98bbc66417dabd035a7ba..a14a60f65ecee7fd87e2d6ebf94b42039b15dbaa 100644 (file)
@@ -46,12 +46,12 @@ public class ChangeConnectionHandler extends AbstractHandler {
                        }
                        
                        try {
-                               container.getDataSource().testConnection();
+                               container.getCdmSource().checkConnection();
                                boolean confirmed = StoreUtil.confirmDialog("Confirm Datasource Connection", "Do you really want to connect to this datasource?\n\n"
-                                               + container.getDataSource().getName());
+                                               + container.getCdmSource().getName());
                                
                                if(confirmed){
-                                       CdmDataSourceRepository.changeDataSource(container.getDataSource());
+                                       CdmDataSourceRepository.changeDataSource(container.getCdmSource());
                                }
                        } catch (Exception e) {
                                StoreUtil.warningDialog("Chosen datasource is not available", this, "This could mean that either the database server is " +