Revision 29956 branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/layers/vectorial/FLyrVect.java
FLyrVect.java | ||
---|---|---|
130 | 130 |
import org.gvsig.tools.observer.Observer; |
131 | 131 |
import org.gvsig.tools.persistence.PersistenceException; |
132 | 132 |
import org.gvsig.tools.persistence.PersistenceManager; |
133 |
import org.gvsig.tools.persistence.PersistenceValidateExceptions; |
|
133 | 134 |
import org.gvsig.tools.persistence.PersistentState; |
134 |
import org.gvsig.tools.persistence.xmlentity.XMLEntityManager; |
|
135 |
import org.gvsig.tools.persistence.xmlentity.XMLEntityState; |
|
136 | 135 |
import org.gvsig.tools.task.Cancellable; |
137 | 136 |
import org.gvsig.utils.NotExistInXMLEntity; |
138 | 137 |
import org.gvsig.utils.XMLEntity; |
... | ... | |
1093 | 1092 |
PersistenceManager manager = ToolsLocator.getPersistenceManager(); |
1094 | 1093 |
PersistentState stateFeatureStore=manager.getState(getFeatureStore()); |
1095 | 1094 |
stateFeatureStore.set("tagName","featureStore"); |
1096 |
xml.addChild(((XMLEntityState)stateFeatureStore).getXMLEntity()); |
|
1095 |
// xml.addChild(((XMLEntityState)stateFeatureStore).getXMLEntity());
|
|
1097 | 1096 |
} catch (ReadException e) { |
1098 | 1097 |
throw new XMLLayerException(getName(),e); |
1099 | 1098 |
} catch (PersistenceException e) { |
1100 | 1099 |
throw new XMLLayerException(getName(),e); |
1100 |
} catch (PersistenceValidateExceptions e) { |
|
1101 |
throw new XMLLayerException(getName(), e); |
|
1101 | 1102 |
} |
1102 | 1103 |
// properties from ILabelable |
1103 | 1104 |
xml.putProperty("isLabeled", isLabeled); |
... | ... | |
1120 | 1121 |
|
1121 | 1122 |
// PersistentState persistentState=new XMLEntityState(new XMLEntityManager()); |
1122 | 1123 |
XMLEntity xmlStore=xml.firstChild("tagName","featureStore"); |
1123 |
XMLEntityManager xmlManger = new XMLEntityManager(); |
|
1124 |
PersistentState state = xmlManger.createState(xmlStore); |
|
1124 |
// XMLEntityManager xmlManger = new XMLEntityManager(); |
|
1125 |
// PersistentState state = xmlManger.createState(xmlStore); |
|
1126 |
PersistentState state = null; // FIXME |
|
1125 | 1127 |
DataStore store = (DataStore) ToolsLocator.getPersistenceManager().create(state); |
1126 | 1128 |
// persistentState.createState(xmlStore); |
1127 | 1129 |
|
Also available in: Unified diff