Changeset 16575 in osm for applications/editors/josm


Ignore:
Timestamp:
2009-07-19T12:33:42+02:00 (15 years ago)
Author:
guggis
Message:

comments added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/josm/CompatibilityUtil.java

    r16574 r16575  
    88import org.openstreetmap.josm.data.osm.DataSet;
    99
    10 
     10/**
     11 * Static helper for the transition from JOSM with {@see Main#ds} to {@see Main#getCurrentDataSet()}.
     12 *
     13 *
     14 */
    1115public class CompatibilityUtil {
    1216
    1317        private static boolean useMainDs = false;
    1418        private static boolean useGetCurrentDataSet = false;
     19
     20        private CompatibilityUtil(){}
    1521
    1622        private static boolean hasMainDs() {
     
    6672        }
    6773
     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         */
    6881        static public DataSet getCurrentDataSet() throws RuntimeException {
    6982                analyse();
Note: See TracChangeset for help on using the changeset viewer.