Revision 41648 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.fmap.control/src/main/java/org/gvsig/fmap/mapcontrol/dal/jdbc/JDBCConnectionPanel.java
JDBCConnectionPanel.java | ||
---|---|---|
214 | 214 |
|
215 | 215 |
DataServerExplorerParameters params; |
216 | 216 |
|
217 |
JDBCServerExplorerParameters last = null; |
|
217 | 218 |
Iterator<String> it = explorers.iterator(); |
218 | 219 |
while ( it.hasNext() ) { |
219 | 220 |
String explorerName = it.next(); |
... | ... | |
224 | 225 |
} |
225 | 226 |
if ( params instanceof JDBCServerExplorerParameters ) { |
226 | 227 |
JDBCServerExplorerParameters dbParams = (JDBCServerExplorerParameters) params; |
227 |
this.cboConnectors.addItem( |
|
228 |
new ServerExplorerParametersComboItem(dbParams) |
|
229 |
); |
|
228 |
if( dbParams.getClass().getName().equals(JDBCServerExplorerParameters.class.getName()) ) { |
|
229 |
last = dbParams; |
|
230 |
} else { |
|
231 |
this.cboConnectors.addItem( |
|
232 |
new ServerExplorerParametersComboItem(dbParams) |
|
233 |
); |
|
234 |
} |
|
230 | 235 |
} |
231 | 236 |
} |
237 |
if( last!=null ) { |
|
238 |
this.cboConnectors.addItem( |
|
239 |
new ServerExplorerParametersComboItem(last) |
|
240 |
); |
|
241 |
} |
|
232 | 242 |
} |
233 | 243 |
|
234 | 244 |
private void fillConnections() { |
Also available in: Unified diff