diff --git a/src/org/openstreetmap/josm/data/preferences/BooleanProperty.java b/src/org/openstreetmap/josm/data/preferences/BooleanProperty.java
index 3e466f0..578edca 100644
a
|
b
|
public class BooleanProperty extends AbstractProperty<Boolean> {
|
15 | 15 | */ |
16 | 16 | public BooleanProperty(String key, boolean defaultValue) { |
17 | 17 | super(key, defaultValue); |
| 18 | if (Main.pref != null) { |
| 19 | get(); |
| 20 | } |
18 | 21 | } |
19 | 22 | |
20 | 23 | @Override |
diff --git a/src/org/openstreetmap/josm/data/preferences/CollectionProperty.java b/src/org/openstreetmap/josm/data/preferences/CollectionProperty.java
index dabd3c7..0b5c854 100644
a
|
b
|
public class CollectionProperty extends AbstractProperty<Collection<String>> {
|
17 | 17 | */ |
18 | 18 | public CollectionProperty(String key, Collection<String> defaultValue) { |
19 | 19 | super(key, defaultValue); |
| 20 | if (Main.pref != null) { |
| 21 | get(); |
| 22 | } |
20 | 23 | } |
21 | 24 | |
22 | 25 | @Override |
diff --git a/src/org/openstreetmap/josm/data/preferences/ColorProperty.java b/src/org/openstreetmap/josm/data/preferences/ColorProperty.java
index 8c1794b..b597bb2 100644
a
|
b
|
public class ColorProperty extends AbstractProperty<Color> implements ColorKey {
|
23 | 23 | public ColorProperty(String colName, Color defaultValue) { |
24 | 24 | super(getColorKey(colName), defaultValue); |
25 | 25 | this.name = colName; |
| 26 | if (Main.pref != null) { |
| 27 | get(); |
| 28 | } |
26 | 29 | } |
27 | 30 | |
28 | 31 | @Override |
diff --git a/src/org/openstreetmap/josm/data/preferences/IntegerProperty.java b/src/org/openstreetmap/josm/data/preferences/IntegerProperty.java
index 342b3ba..f15d082 100644
a
|
b
|
public class IntegerProperty extends AbstractProperty<Integer> {
|
16 | 16 | */ |
17 | 17 | public IntegerProperty(String key, int defaultValue) { |
18 | 18 | super(key, defaultValue); |
| 19 | if (Main.pref != null) { |
| 20 | get(); |
| 21 | } |
19 | 22 | } |
20 | 23 | |
21 | 24 | @Override |
diff --git a/src/org/openstreetmap/josm/data/preferences/ParametrizedEnumProperty.java b/src/org/openstreetmap/josm/data/preferences/ParametrizedEnumProperty.java
index 094a745..84dc7ba 100644
a
|
b
|
public abstract class ParametrizedEnumProperty<T extends Enum<T>> {
|
11 | 11 | public ParametrizedEnumProperty(Class<T> enumClass, T defaultValue) { |
12 | 12 | this.defaultValue = defaultValue; |
13 | 13 | this.enumClass = enumClass; |
| 14 | if (Main.pref != null) { |
| 15 | get(); |
| 16 | } |
14 | 17 | } |
15 | 18 | |
16 | 19 | protected abstract String getKey(String... params); |
diff --git a/src/org/openstreetmap/josm/data/preferences/StringProperty.java b/src/org/openstreetmap/josm/data/preferences/StringProperty.java
index 1e352ad..25e42a1 100644
a
|
b
|
public class StringProperty extends AbstractProperty<String> {
|
15 | 15 | */ |
16 | 16 | public StringProperty(String key, String defaultValue) { |
17 | 17 | super(key, defaultValue); |
| 18 | if (Main.pref != null) { |
| 19 | get(); |
| 20 | } |
18 | 21 | } |
19 | 22 | |
20 | 23 | @Override |