Revision 30038 branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/FLyrVect.java
FLyrVect.java | ||
---|---|---|
75 | 75 |
import org.gvsig.fmap.geom.type.GeometryType; |
76 | 76 |
import org.gvsig.fmap.geom.type.GeometryTypeNotSupportedException; |
77 | 77 |
import org.gvsig.fmap.geom.type.GeometryTypeNotValidException; |
78 |
import org.gvsig.fmap.mapcontext.MapContextException; |
|
79 | 78 |
import org.gvsig.fmap.mapcontext.MapContextLocator; |
80 | 79 |
import org.gvsig.fmap.mapcontext.ViewPort; |
81 | 80 |
import org.gvsig.fmap.mapcontext.exceptions.LegendLayerException; |
... | ... | |
588 | 587 |
PersistentState stateFeatureStore=manager.getState(getFeatureStore()); |
589 | 588 |
stateFeatureStore.set("tagName","featureStore"); |
590 | 589 |
// xml.addChild(((XMLEntityState)stateFeatureStore).getXMLEntity()); |
591 |
} catch (ReadException e) { |
|
592 |
throw new XMLLayerException(getName(),e); |
|
593 | 590 |
} catch (PersistenceException e) { |
594 | 591 |
throw new XMLLayerException(getName(),e); |
595 | 592 |
} catch (PersistenceValidateExceptions e) { |
... | ... | |
963 | 960 |
} |
964 | 961 |
|
965 | 962 |
public boolean isWritable() { |
966 |
try { |
|
967 |
return getFeatureStore().allowWrite(); |
|
968 |
} catch (ReadException e) { |
|
969 |
e.printStackTrace(); |
|
970 |
} |
|
971 |
return false; |
|
963 |
return getFeatureStore().allowWrite(); |
|
972 | 964 |
} |
973 | 965 |
|
974 | 966 |
public FLayer cloneLayer() throws Exception { |
... | ... | |
1117 | 1109 |
super.load(); |
1118 | 1110 |
} |
1119 | 1111 |
|
1120 |
public FeatureStore getFeatureStore() throws ReadException {
|
|
1112 |
public FeatureStore getFeatureStore() { |
|
1121 | 1113 |
return (FeatureStore)getDataStore(); |
1122 | 1114 |
} |
1123 | 1115 |
|
Also available in: Unified diff