Revision 38383 branches/v2_0_0_prep/libraries/libFMap_controls/src/org/gvsig/fmap/mapcontrol/dal/feature/swing/table/FeatureTableModel.java
FeatureTableModel.java | ||
---|---|---|
261 | 261 |
} else if (FeatureStoreNotification.AFTER_UPDATE.equals(type)) { |
262 | 262 |
|
263 | 263 |
reloadIfFeatureUpdated(fsNotification.getFeature()); |
264 |
|
|
264 | 265 |
} else |
265 | 266 |
if (FeatureStoreNotification.AFTER_UPDATE_TYPE.equals(type)) { |
266 | 267 |
|
267 | 268 |
reloadIfTypeChanged(fsNotification.getFeatureType()); |
268 | 269 |
|
269 | 270 |
} else |
270 |
if (FeatureStoreNotification.TRANSFORM_CHANGE.equals(type)) { |
|
271 |
reloadIfTypeTransformed(); |
|
271 |
if (FeatureStoreNotification.TRANSFORM_CHANGE.equals(type) |
|
272 |
// || FeatureStoreNotification.AFTER_UNDO.equals(type) |
|
273 |
|| FeatureStoreNotification.AFTER_REFRESH.equals(type)) { |
|
274 |
|
|
275 |
reloadFeatureType(); |
|
272 | 276 |
|
273 | 277 |
} else |
274 |
if (FeatureStoreNotification.AFTER_FINISHEDITING |
|
275 |
.equals(type) |
|
276 |
|| FeatureStoreNotification.AFTER_CANCELEDITING |
|
277 |
.equals(type)) { |
|
278 |
reloadIfTypeTransformed(); |
|
278 |
if (FeatureStoreNotification.AFTER_FINISHEDITING.equals(type) |
|
279 |
|| FeatureStoreNotification.AFTER_CANCELEDITING.equals(type)) { |
|
280 |
|
|
281 |
reloadFeatureType(); |
|
279 | 282 |
} |
280 | 283 |
|
281 | 284 |
} |
... | ... | |
412 | 415 |
} |
413 | 416 |
} |
414 | 417 |
|
415 |
/** |
|
416 |
* Reloads data and structure if the {@link FeatureType} of the features |
|
417 |
* being shown has been transformed. |
|
418 |
*/ |
|
419 |
private void reloadIfTypeTransformed() { |
|
418 |
|
|
419 |
|
|
420 |
private void reloadFeatureType() { |
|
420 | 421 |
try { |
421 | 422 |
setFeatureType(getHelper().getFeatureStore().getFeatureType( |
422 | 423 |
getHelper().getFeatureType().getId())); |
Also available in: Unified diff