Revision 44728 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.geodb.app/org.gvsig.geodb.app.mainplugin/src/main/java/org/gvsig/geodb/databaseworkspace/ConnectToDatabaseWorkspacePanel.java
ConnectToDatabaseWorkspacePanel.java | ||
---|---|---|
39 | 39 |
} |
40 | 40 |
DataManager dataManager = DALLocator.getDataManager(); |
41 | 41 |
DatabaseWorkspaceManager workspace = dataManager.createDatabaseWorkspaceManager(conn); |
42 |
dataManager.addDatabaseWorkspace(workspace);
|
|
42 |
workspace.connect();
|
|
43 | 43 |
return true; |
44 | 44 |
} |
45 | 45 |
|
... | ... | |
86 | 86 |
return; |
87 | 87 |
} |
88 | 88 |
DataManager dataManager = DALLocator.getDataManager(); |
89 |
DatabaseWorkspaceManager workspace = dataManager.createDatabaseWorkspaceManager(getConnection()); |
|
89 |
JDBCServerExplorerParameters conn = getConnection(); |
|
90 |
DatabaseWorkspaceManager workspace = dataManager.createDatabaseWorkspaceManager(conn); |
|
90 | 91 |
String id = workspace.get(CONFIG_NAME_STORESREPOSITORYID); |
91 | 92 |
String label = workspace.get(CONFIG_NAME_STORESREPOSITORYLABEL); |
92 | 93 |
this.txtID.setText(StringUtils.defaultIfBlank(id, "")); |
93 | 94 |
this.txtLabel.setText(StringUtils.defaultIfBlank(label, "")); |
94 |
|
|
95 |
this.connectionPicker.set(conn); |
|
95 | 96 |
this.doUpdateEnableComponents(); |
96 | 97 |
} |
97 | 98 |
|
Also available in: Unified diff