Revision 27382 branches/v2_0_0_prep/libraries/libFMap_controls/src/org/gvsig/fmap/data/feature/swing/table/FeatureTableModel.java
FeatureTableModel.java | ||
---|---|---|
241 | 241 |
FeatureStoreNotification fsNotification = (FeatureStoreNotification) notification; |
242 | 242 |
String type = fsNotification.getType(); |
243 | 243 |
|
244 |
System.out.println("FeatureTableModel.update(): " + type); |
|
244 | 245 |
// If there are new, updated or deleted features |
245 | 246 |
// reload the table data |
246 | 247 |
if (FeatureStoreNotification.AFTER_DELETE.equals(type) |
... | ... | |
256 | 257 |
} else if (FeatureStoreNotification.TRANSFORM_CHANGE.equals(type)) { |
257 | 258 |
reloadIfTypeTransformed(); |
258 | 259 |
|
259 |
} else if (FeatureStoreNotification.AFTER_FINISHEDITING.equals(type)) { |
|
260 |
reloadFeatures(); |
|
260 |
} else if (FeatureStoreNotification.AFTER_FINISHEDITING |
|
261 |
.equals(type) |
|
262 |
|| FeatureStoreNotification.AFTER_CANCELEDITING |
|
263 |
.equals(type)) { |
|
264 |
reloadIfTypeTransformed(); |
|
261 | 265 |
} |
262 | 266 |
|
263 | 267 |
} |
... | ... | |
354 | 358 |
*/ |
355 | 359 |
private void reloadIfFeatureChanged(Feature feature) { |
356 | 360 |
// Is any data is changed in the FeatureStore, notify the model |
357 |
// listeners. Ignore the case where the updated feature is
|
|
358 |
// changed through us.
|
|
359 |
if (editableFeature == null || !editableFeature.equals(feature)) {
|
|
360 |
reloadFeatures();
|
|
361 |
fireTableDataChanged();
|
|
362 |
}
|
|
361 |
// listeners. Ignore the case where the updated feature is
|
|
362 |
// changed through us.
|
|
363 |
if (editableFeature == null || !editableFeature.equals(feature)) {
|
|
364 |
reloadFeatures();
|
|
365 |
fireTableDataChanged();
|
|
366 |
}
|
|
363 | 367 |
} |
364 | 368 |
|
365 | 369 |
/** |
Also available in: Unified diff