[josm-dev] JOSM saved preferences

Dirk Stöcker openstreetmap at dstoecker.de
Sun Mar 15 21:15:35 UTC 2015


On Sun, 15 Mar 2015, Harvey Sama wrote:

> I tried to change the value of a preference - osm-download.bounds.
> using Main.pref.put(Key, value)
> JOSM documentation says " *value* the value of the setting. Can be null or
> "" which both removes the key-value entry."
> So I first removed the value using
> Main.pref.put("osm-download.bounds", null);
> then reinserting a new one
> Main.pref.put("osm-download.bounds",
> currentSource.bounds.encodeAsString(";"));
>
> but the value never changes.
> The documentation also says when preference file is modified, it is saved
> directly, so why is the value always the same?

Your description does not indicate an error, except that when clearing and 
then setting a new value the first step is useless.

Maybe you simply overlooked, that this value changes as soon as you 
download something?

Ciao
-- 
http://www.dstoecker.eu/ (PGP key available)



More information about the josm-dev mailing list