Changeset 22854 in osm for applications/editors/josm/plugins
- Timestamp:
- 2010-08-29T13:36:49+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/wmsplugin/src/wmsplugin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/GeorefImage.java
r22794 r22854 25 25 public enum State { IMAGE, NOT_IN_CACHE, FAILED}; 26 26 27 private finalWMSLayer layer;27 private WMSLayer layer; 28 28 private State state; 29 29 … … 170 170 171 171 private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { 172 state = (State) in.readObject(); 172 173 boolean hasImage = in.readBoolean(); 173 174 if (hasImage) … … 180 181 181 182 private void writeObject(ObjectOutputStream out) throws IOException { 183 out.writeObject(state); 182 184 if(getImage() == null) { 183 185 out.writeBoolean(false); … … 215 217 return yIndex; 216 218 } 219 220 public void setLayer(WMSLayer layer) { 221 this.layer = layer; 222 } 217 223 } -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSLayer.java
r22794 r22854 640 640 ois.close(); 641 641 fis.close(); 642 for (GeorefImage[] imgs : images) { 643 for (GeorefImage img : imgs) { 644 if (img != null) { 645 img.setLayer(WMSLayer.this); 646 } 647 } 648 } 642 649 settingsChanged = true; 643 650 mv.repaint();
Note:
See TracChangeset
for help on using the changeset viewer.