Changeset 1825 in josm
- Timestamp:
- 2009-07-24T08:03:25+02:00 (15 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r1814 r1825 220 220 221 221 /** 222 * Replies true if there is an edit layer which is currently 223 * active 222 * Replies true if there is an edit layer 224 223 * 225 * @return true if there is an edit layer which is currently 226 * active 227 */ 228 public boolean hasActiveEditLayer() { 224 * @return true if there is an edit layer 225 */ 226 public boolean hasEditLayer() { 229 227 if (map == null) return false; 230 228 if (map.mapView == null) return false; … … 250 248 */ 251 249 public DataSet getCurrentDataSet() { 252 if (!has ActiveEditLayer()) return null;250 if (!hasEditLayer()) return null; 253 251 return getEditLayer().data; 254 252 } -
trunk/src/org/openstreetmap/josm/gui/MapView.java
r1823 r1825 417 417 if (activeLayer instanceof OsmDataLayer) 418 418 return (OsmDataLayer)activeLayer; 419 420 // the first OsmDataLayer is the edit layer 421 // 422 for (Layer layer : layers) { 423 if (layer instanceof OsmDataLayer) 424 return (OsmDataLayer)layer; 425 } 419 426 return null; 420 427 }
Note:
See TracChangeset
for help on using the changeset viewer.