Revision 42200 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/extension/TableEditStopExtension.java
TableEditStopExtension.java | ||
---|---|---|
284 | 284 |
// m?todo "public void stopEditing()" |
285 | 285 |
private boolean executeSaveTable(TableDocument table2) { |
286 | 286 |
FeatureStore fs = table2.getStore(); |
287 |
try { |
|
288 |
fs.finishEditing(); |
|
289 |
} catch (WriteException e) { |
|
290 |
NotificationManager.addError( |
|
291 |
PluginServices.getText(this, "error_saving_table"), e); |
|
292 |
return false; |
|
293 |
} catch (ReadException e) { |
|
294 |
NotificationManager.addError( |
|
295 |
PluginServices.getText(this, "error_saving_table"), e); |
|
296 |
return false; |
|
297 |
} catch (DataException e) { |
|
298 |
NotificationManager.addError( |
|
299 |
PluginServices.getText(this, "error_saving_table"), e); |
|
300 |
return false; |
|
287 |
if (fs.isEditing()) { |
|
288 |
try { |
|
289 |
fs.finishEditing(); |
|
290 |
} catch (WriteException e) { |
|
291 |
NotificationManager.addError(PluginServices.getText(this, "error_saving_table"), e); |
|
292 |
return false; |
|
293 |
} catch (ReadException e) { |
|
294 |
NotificationManager.addError(PluginServices.getText(this, "error_saving_table"), e); |
|
295 |
return false; |
|
296 |
} catch (DataException e) { |
|
297 |
NotificationManager.addError(PluginServices.getText(this, "error_saving_table"), e); |
|
298 |
return false; |
|
299 |
} |
|
301 | 300 |
} |
302 | 301 |
// if (ies instanceof IWriteable) { |
303 | 302 |
// IWriteable w = (IWriteable) ies; |
Also available in: Unified diff