Revision 44442
trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/jdbc/DefaultJDBCConnectionPanel.java | ||
---|---|---|
438 | 438 |
} |
439 | 439 |
|
440 | 440 |
private void onChangeConnection() { |
441 |
LabeledValue<JDBCServerExplorerParameters> item = (LabeledValue<JDBCServerExplorerParameters>) this.cboConnections.getSelectedItem(); |
|
442 |
if( item == null ) { |
|
443 |
return; |
|
441 |
Object value = this.cboConnections.getSelectedItem(); |
|
442 |
if( value instanceof LabeledValue ) { |
|
443 |
LabeledValue<JDBCServerExplorerParameters> item = (LabeledValue<JDBCServerExplorerParameters>) value; |
|
444 |
JDBCServerExplorerParameters connection = item.getValue(); |
|
445 |
if ( connection == null ) { |
|
446 |
return; |
|
447 |
} |
|
448 |
this.setServerExplorerParameters(connection); |
|
444 | 449 |
} |
445 |
JDBCServerExplorerParameters connection = item.getValue(); |
|
446 |
if ( connection == null ) { |
|
447 |
return; |
|
448 |
} |
|
449 |
this.setServerExplorerParameters(connection); |
|
450 | 450 |
} |
451 | 451 |
|
452 | 452 |
|
Also available in: Unified diff