Revision 45152 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app.document.table.app/org.gvsig.app.document.table.app.mainplugin/src/main/java/org/gvsig/app/project/documents/table/TableOperations.java
TableOperations.java | ||
---|---|---|
343 | 343 |
if (newName == null || newName.length() == 0) { |
344 | 344 |
continue; |
345 | 345 |
} |
346 |
if (_ft.getIndex(newName) != -1) { |
|
346 |
FeatureAttributeDescriptor attr = _ft.getAttributeDescriptor(newName); |
|
347 |
// To be able to change the name of the attribute when it is changed |
|
348 |
// from uppercase to lowercase or vice versa |
|
349 |
if(attr != null && attr.getName().equals(newName)){ |
|
347 | 350 |
NotificationManager.showMessageInfo( |
348 | 351 |
Messages.getText("field_already_exists"), null); |
349 | 352 |
return; |
... | ... | |
351 | 354 |
|
352 | 355 |
renameAttribute(featureStore, selecteds[i].getName(), newName); |
353 | 356 |
} |
354 |
|
|
355 |
// featureStore.finishEditing(); |
|
356 |
// featureStore.edit(FeatureStore.MODE_FULLEDIT); |
|
357 | 357 |
} |
358 | 358 |
|
359 | 359 |
/** |
Also available in: Unified diff