Changeset 16575 in osm for applications/editors/josm/plugins
- Timestamp:
- 2009-07-19T12:33:42+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/josm/CompatibilityUtil.java
r16574 r16575 8 8 import org.openstreetmap.josm.data.osm.DataSet; 9 9 10 10 /** 11 * Static helper for the transition from JOSM with {@see Main#ds} to {@see Main#getCurrentDataSet()}. 12 * 13 * 14 */ 11 15 public class CompatibilityUtil { 12 16 13 17 private static boolean useMainDs = false; 14 18 private static boolean useGetCurrentDataSet = false; 19 20 private CompatibilityUtil(){} 15 21 16 22 private static boolean hasMainDs() { … … 66 72 } 67 73 74 /** 75 * Replies the current data set in JOSM. Depending on the JOSM version, either uses 76 * {@see Main#ds} or {@see Main#getCurrentDataSet()}. 77 * 78 * @return the current dataset. <strong>This may be null</strong> 79 * @throws RuntimeException thrown, if the current data set can't be read 80 */ 68 81 static public DataSet getCurrentDataSet() throws RuntimeException { 69 82 analyse();
Note:
See TracChangeset
for help on using the changeset viewer.