Revision 25785 branches/v2_0_0_prep/libraries/libFMap_dal/src/org/gvsig/fmap/dal/feature/impl/DefaultFeatureStoreTransforms.java

View differences:

DefaultFeatureStoreTransforms.java
9 9
import org.gvsig.fmap.dal.feature.EditableFeature;
10 10
import org.gvsig.fmap.dal.feature.Feature;
11 11
import org.gvsig.fmap.dal.feature.FeatureStore;
12
import org.gvsig.fmap.dal.feature.FeatureStoreNotification;
12 13
import org.gvsig.fmap.dal.feature.FeatureStoreTransform;
13 14
import org.gvsig.fmap.dal.feature.FeatureStoreTransforms;
14 15
import org.gvsig.fmap.dal.feature.FeatureType;
......
44 45
			throw new IllegalArgumentException(); // FIXME: A?adir tipo especifico.
45 46
		}
46 47
		this.transforms.add(transform);
48
		this.store.notifyChange(FeatureStoreNotification.TRANSFORM_CHANGE);
47 49
		return transform;
48 50
	}
49 51

  
......
51 53
	public void clear() {
52 54
		checkEditingMode();
53 55
		this.transforms.clear();
56
		this.store.notifyChange(FeatureStoreNotification.TRANSFORM_CHANGE);
54 57
	}
55 58

  
56 59
	public FeatureStoreTransform getTransform(int index) {
......
63 66

  
64 67
	public Object remove(int index) {
65 68
		checkEditingMode();
66
		return this.transforms.remove(index);
69
		Object trans = this.transforms.remove(index);
70
		if (trans != null) {
71
			this.store.notifyChange(FeatureStoreNotification.TRANSFORM_CHANGE);
72
		}
73
		return trans;
67 74
	}
68 75

  
69 76
	public boolean remove(FeatureStoreTransform transform) {
70 77
		checkEditingMode();
71
		return this.transforms.remove(transform);
78
		boolean removed = this.transforms.remove(transform);
79
		if (removed) {
80
			this.store.notifyChange(FeatureStoreNotification.TRANSFORM_CHANGE);
81
		}
82
		return removed;
83

  
72 84
	}
73 85

  
74 86
	public int size() {

Also available in: Unified diff