Revision 46905 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/featureset/EditedIterator.java
EditedIterator.java | ||
---|---|---|
30 | 30 |
import java.util.logging.Logger; |
31 | 31 |
import org.gvsig.fmap.dal.exception.DataException; |
32 | 32 |
import org.gvsig.fmap.dal.feature.EditableFeature; |
33 |
import org.gvsig.fmap.dal.feature.Feature; |
|
33 | 34 |
import org.gvsig.fmap.dal.feature.FeatureReference; |
34 | 35 |
import org.gvsig.fmap.dal.feature.exception.ConcurrentDataModificationException; |
35 | 36 |
import org.gvsig.fmap.dal.feature.impl.DefaultFeature; |
... | ... | |
137 | 138 |
@Override |
138 | 139 |
public Object next() { |
139 | 140 |
if (store.isEditing()) { |
140 |
return super.next(); |
|
141 |
Feature n = (Feature) super.next(); |
|
142 |
this.visitedReferences.add(n.getReference()); |
|
143 |
return n; |
|
141 | 144 |
} else { |
142 | 145 |
throw new ConcurrentDataModificationException(store.getFullName()); |
143 | 146 |
} |
Also available in: Unified diff