Revision 41350 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/BaseViewDocument.java
BaseViewDocument.java | ||
---|---|---|
29 | 29 |
import java.awt.Component; |
30 | 30 |
import java.awt.Dimension; |
31 | 31 |
import java.util.List; |
32 |
import java.util.Map; |
|
32 | 33 |
|
33 | 34 |
import javax.swing.JOptionPane; |
34 | 35 |
import javax.swing.JPanel; |
... | ... | |
46 | 47 |
import org.gvsig.fmap.mapcontext.events.ErrorEvent; |
47 | 48 |
import org.gvsig.fmap.mapcontext.events.listeners.ErrorListener; |
48 | 49 |
import org.gvsig.fmap.mapcontext.layers.CancelationException; |
50 |
import org.gvsig.fmap.mapcontext.layers.ExtendedPropertiesHelper; |
|
49 | 51 |
import org.gvsig.fmap.mapcontext.layers.FLayer; |
50 | 52 |
import org.gvsig.fmap.mapcontext.layers.FLayers; |
51 | 53 |
import org.gvsig.tools.exception.BaseException; |
... | ... | |
72 | 74 |
protected MapContext mapOverViewContext; |
73 | 75 |
protected MapContext mapContext; |
74 | 76 |
|
77 |
private ExtendedPropertiesHelper propertiesHelper = new ExtendedPropertiesHelper(); |
|
78 |
|
|
75 | 79 |
public BaseViewDocument() { |
76 | 80 |
super(); |
77 | 81 |
} |
... | ... | |
254 | 258 |
state.set("useMapOverview", false); |
255 | 259 |
} |
256 | 260 |
state.set("overviewMapContext", this.getMapOverViewContext()); |
261 |
state.set("propertiesHelper",propertiesHelper); |
|
257 | 262 |
} |
258 | 263 |
|
259 | 264 |
public void loadFromState(PersistentState state) throws PersistenceException { |
... | ... | |
264 | 269 |
} else { |
265 | 270 |
this.mapOverViewContext = null; |
266 | 271 |
} |
272 |
this.propertiesHelper = (ExtendedPropertiesHelper) state.get("propertiesHelper"); |
|
267 | 273 |
} |
268 |
|
|
274 |
|
|
275 |
public Object getProperty(Object key) { |
|
276 |
return this.propertiesHelper.getProperty(key); |
|
277 |
} |
|
278 |
|
|
279 |
public void setProperty(Object key, Object obj) { |
|
280 |
this.propertiesHelper.setProperty(key, obj); |
|
281 |
} |
|
282 |
|
|
283 |
public Map getExtendedProperties() { |
|
284 |
return this.propertiesHelper.getExtendedProperties(); |
|
285 |
} |
|
269 | 286 |
} |
Also available in: Unified diff