Revision 27723 branches/v2_0_0_prep/extensions/extGeoDB/src/com/prodevelop/cit/gvsig/vectorialdb/wizard/VectorialDBConnectionParamsDialog.java
VectorialDBConnectionParamsDialog.java | ||
---|---|---|
62 | 62 |
import org.gvsig.fmap.dal.DataManager; |
63 | 63 |
import org.gvsig.fmap.dal.DataServerExplorerParameters; |
64 | 64 |
import org.gvsig.fmap.dal.exception.InitializeException; |
65 |
import org.gvsig.fmap.dal.serverexplorer.db.DBServerExplorerParameters; |
|
66 |
import org.gvsig.fmap.data.feature.db.DBExplorerParameters; |
|
65 | 67 |
|
66 | 68 |
import com.iver.andami.PluginServices; |
67 | 69 |
import com.iver.andami.messages.NotificationManager; |
... | ... | |
272 | 274 |
} |
273 | 275 |
|
274 | 276 |
private class DriverComboBoxItem { |
275 |
private DBExplorerParameters params; |
|
277 |
private DBServerExplorerParameters params;
|
|
276 | 278 |
|
277 |
public DriverComboBoxItem(DBExplorerParameters dbParams) { |
|
279 |
public DriverComboBoxItem(DBServerExplorerParameters dbParams) {
|
|
278 | 280 |
this.params = dbParams; |
279 | 281 |
} |
280 | 282 |
|
281 | 283 |
public String toString() { |
282 |
return params.getDescription(); |
|
284 |
// FIXME |
|
285 |
return params.getExplorerName(); |
|
283 | 286 |
} |
284 | 287 |
} |
285 | 288 |
|
... | ... | |
531 | 534 |
public void keyTyped(KeyEvent e) { |
532 | 535 |
} |
533 | 536 |
|
534 |
public void loadValues(DBExplorerParameters cwp) { |
|
537 |
public void loadValues(DBServerExplorerParameters cwp) {
|
|
535 | 538 |
getPortTextField().setText(cwp.getPort()); |
536 |
selectThisInDriverCombo(cwp.getDataExplorerName());
|
|
539 |
selectThisInDriverCombo(cwp.getExplorerName()); |
|
537 | 540 |
getDbTextField().setText(cwp.getDb()); |
538 | 541 |
getUserTextField().setText(cwp.getUser()); |
539 | 542 |
|
... | ... | |
558 | 561 |
// } |
559 | 562 |
|
560 | 563 |
// getConnectedCheckBox().setSelected(connected); |
561 |
getConnNameTextField().setText(cwp.getDataExplorerName());
|
|
564 |
getConnNameTextField().setText(cwp.getExplorerName());
|
|
562 | 565 |
} |
563 | 566 |
|
564 | 567 |
private void selectThisInDriverCombo(String drvName) { |
... | ... | |
568 | 571 |
DriverComboBoxItem item = (DriverComboBoxItem) getDriverComboBox() |
569 | 572 |
.getItemAt(i); |
570 | 573 |
|
571 |
if (item.params.getDataExplorerName().compareToIgnoreCase(drvName) == 0) {
|
|
574 |
if (item.params.getExplorerName().compareToIgnoreCase(drvName) == 0) { |
|
572 | 575 |
getDriverComboBox().setSelectedIndex(i); |
573 | 576 |
|
574 | 577 |
return; |
Also available in: Unified diff