beautification
authorn.hoffmann <n.hoffmann@localhost>
Fri, 4 Sep 2009 13:35:57 +0000 (13:35 +0000)
committern.hoffmann <n.hoffmann@localhost>
Fri, 4 Sep 2009 13:35:57 +0000 (13:35 +0000)
taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/datasource/DatasourceLauncherDialog.java

index de6eb1187df8f6a6d6fedfa4b237efd5d2bf4cf0..a6eb2c27b4ee237aa8bacd7a1b464a387898881e 100644 (file)
@@ -107,9 +107,11 @@ public class DatasourceLauncherDialog extends TitleAreaDialog {
                int i = 0;
                
                for (ICdmDataSource dataSource : dataSources){
+                       String name = dataSource.getName() != null ? dataSource.getName() : "datasource name not set";
                        String server = dataSource.getServer() != null ? dataSource.getServer() : "local";
+                       String dataBase = dataSource.getDatabase() != null ? dataSource.getDatabase() : "database name not set";
                        
-                       combo_dataSources.add(dataSource.getName() + " - " + server + ", " + dataSource.getDatabase() , i++);
+                       combo_dataSources.add(name + " [" + server + " - " + dataBase + "]", i++);
                }
                
                combo_dataSources.addSelectionListener(new SelectionAdapter(){