Revision 45008 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.geodb.app/org.gvsig.geodb.app.mainplugin/src/main/java/org/gvsig/geodb/AbstractWizardDB.java
AbstractWizardDB.java | ||
---|---|---|
427 | 427 |
protected abstract boolean requireGeometry(); |
428 | 428 |
|
429 | 429 |
protected Collection<TableInfo> getTablesInformation() { |
430 |
this.updateTableInfoFromUI(); |
|
430 | 431 |
if( this.tablesInfo == null ) { |
431 | 432 |
this.tablesInfo = new HashMap<>(); |
432 | 433 |
} |
... | ... | |
572 | 573 |
this.setEditableTableConfig(false); |
573 | 574 |
return; |
574 | 575 |
} |
575 |
String previousTableName = this.view.txtName.getText(); |
|
576 |
TableInfo previousInfo = this.tablesInfo.get(previousTableName); |
|
577 |
if (previousInfo != null) { |
|
578 |
this.fetch(previousInfo); |
|
579 |
} |
|
576 |
this.updateTableInfoFromUI(); |
|
580 | 577 |
this.put(tableInfo); |
581 | 578 |
this.checkFinishable(); |
582 | 579 |
} |
580 |
|
|
581 |
private void updateTableInfoFromUI() { |
|
582 |
String previousTableName = this.view.txtName.getText(); |
|
583 |
if (this.tablesInfo!=null && !this.tablesInfo.isEmpty()) { |
|
584 |
TableInfo previousInfo = this.tablesInfo.get(previousTableName); |
|
585 |
if (previousInfo != null) { |
|
586 |
this.fetch(previousInfo); |
|
587 |
} |
|
588 |
} |
|
589 |
} |
|
583 | 590 |
|
584 | 591 |
private void put(TableInfo tableInfo) { |
585 | 592 |
this.lwcColumns.setModel(tableInfo.getColumnsListModel()); |
Also available in: Unified diff