Revision 34978 branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/FLyrVect.java
FLyrVect.java | ||
---|---|---|
83 | 83 |
import org.gvsig.fmap.mapcontext.exceptions.ReloadLayerException; |
84 | 84 |
import org.gvsig.fmap.mapcontext.exceptions.ReprojectLayerException; |
85 | 85 |
import org.gvsig.fmap.mapcontext.exceptions.StartEditionLayerException; |
86 |
import org.gvsig.fmap.mapcontext.exceptions.StopEditionLayerException; |
|
86 | 87 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
87 | 88 |
import org.gvsig.fmap.mapcontext.layers.FLyrDefault; |
88 | 89 |
import org.gvsig.fmap.mapcontext.layers.LayerEvent; |
... | ... | |
868 | 869 |
* |
869 | 870 |
* @return if this layer has the ability to proces spatial queries without |
870 | 871 |
* secuential scans. |
872 |
* @throws StopEditionLayerException |
|
871 | 873 |
*/ |
872 | 874 |
// public boolean isSpatiallyIndexed() { |
873 | 875 |
// ReadableVectorial source = getSource(); |
... | ... | |
918 | 920 |
|
919 | 921 |
public void setEditing(boolean b) throws StartEditionLayerException { |
920 | 922 |
super.setEditing(b); |
923 |
FeatureStore fs = getFeatureStore(); |
|
921 | 924 |
if (b) { |
922 | 925 |
try { |
923 |
getFeatureStore().edit();
|
|
926 |
fs.edit();
|
|
924 | 927 |
} catch (ReadException e) { |
925 | 928 |
throw new StartEditionLayerException(getName(), e); |
926 | 929 |
} catch (DataException e) { |
... | ... | |
929 | 932 |
} |
930 | 933 |
setSpatialCacheEnabled(b); |
931 | 934 |
callEditionChanged(LayerEvent.createEditionChangedEvent(this, "edition")); |
932 |
|
|
933 | 935 |
} |
934 | 936 |
|
935 | 937 |
/** |
... | ... | |
1349 | 1351 |
|| event.getType() == FeatureStoreNotification.RESOURCE_CHANGED) { |
1350 | 1352 |
this.setAvailable(false); |
1351 | 1353 |
|
1352 |
// try {
|
|
1353 |
// reload();
|
|
1354 |
// } catch (ReloadLayerException e) {
|
|
1355 |
// this.setAvailable(false);
|
|
1356 |
// }
|
|
1354 |
// try {
|
|
1355 |
// reload();
|
|
1356 |
// } catch (ReloadLayerException e) {
|
|
1357 |
// this.setAvailable(false);
|
|
1358 |
// }
|
|
1357 | 1359 |
|
1358 | 1360 |
} else |
1359 |
if (event.getType() == FeatureStoreNotification.AFTER_FINISHEDITING) {
|
|
1360 |
|
|
1361 |
}
|
|
1361 |
if (event.getType() == FeatureStoreNotification.AFTER_FINISHEDITING) {
|
|
1362 |
this.setAvailable(true); |
|
1363 |
}
|
|
1362 | 1364 |
} |
1363 | 1365 |
|
1364 | 1366 |
} |
Also available in: Unified diff