Revision 39409 branches/v2_0_0_prep/extensions/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/project/documents/table/gui/FeatureTypeEditingPanel.java
FeatureTypeEditingPanel.java | ||
---|---|---|
519 | 519 |
"field_already_exists"), null); |
520 | 520 |
return; |
521 | 521 |
} |
522 |
|
|
523 | 522 |
|
524 | 523 |
try { |
525 |
TableOperations.renameColumn( |
|
526 |
featureStore, fieldName, newName); |
|
527 |
} catch (DataException de) { |
|
524 |
EditableFeatureAttributeDescriptor efad = |
|
525 |
(EditableFeatureAttributeDescriptor) |
|
526 |
editableType.getAttributeDescriptor(fieldName); |
|
527 |
efad.setName(newName); |
|
528 |
} catch (Exception de) { |
|
528 | 529 |
JOptionPane.showMessageDialog( |
529 | 530 |
jTableFields, |
530 | 531 |
Messages.getText("_Unable_to_rename_field") |
... | ... | |
532 | 533 |
Messages.getText("_Rename_column"), |
533 | 534 |
JOptionPane.ERROR_MESSAGE); |
534 | 535 |
} |
535 |
|
|
536 |
/* |
|
537 |
* We need to close the dialog |
|
538 |
* to avoid another update of the |
|
539 |
* feature type |
|
540 |
*/ |
|
541 |
PluginServices.getMDIManager().closeWindow( |
|
542 |
FeatureTypeEditingPanel.this); |
|
543 |
|
|
544 |
|
|
545 | 536 |
} |
546 | 537 |
jTableFields.repaint(); |
547 | 538 |
} |
Also available in: Unified diff