Ignore:
Timestamp:
2011-01-21T12:42:29+01:00 (14 years ago)
Author:
bastiK
Message:

Changed the mappaint and tagging preset preference format from a list of URLs to array preference to store more parameters for each source entry. (The flag "active" will be used for a dialog to quickly switch mappaint styles on and off.)
Removed the "mappaint.style.enable-defaults" and "taggingpreset.enable-defaults" property - the default (internal) source is now included in the normal list of sources. (The old preference entries are not removed yet, this should probably be changed, when the migration has been tested a little.)
Rearranged gui elements in mappaint and preset pref dialog to use the available space better and make the structure more clear. Strings that have been the same in mappaint and preset pref dialog are now different for each dialog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Utils.java

    r3711 r3796  
    2929
    3030    /**
     31     * for convenience: test whether 2 objects are either both null or a.equals(b)
     32     */
     33    public static <T> boolean equal(T a, T b) {
     34        if (a == null && b == null)
     35            return true;
     36        return (a != null && a.equals(b));
     37    }
     38
     39    /**
    3140     * return the modulus in the range [0, n)
    3241     */
Note: See TracChangeset for help on using the changeset viewer.