Changeset 10824 in josm for trunk/src/org/openstreetmap/josm/gui/conflict
- Timestamp:
- 2016-08-17T09:18:31+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/conflict/ConflictColors.java
r10134 r10824 6 6 import java.awt.Color; 7 7 8 import org.openstreetmap.josm.Main; 9 import org.openstreetmap.josm.data.Preferences.ColorKey; 8 import org.openstreetmap.josm.data.preferences.ColorProperty; 10 9 11 10 /** … … 13 12 * @since 4162 14 13 */ 15 public enum ConflictColors implements ColorKey{14 public enum ConflictColors { 16 15 17 16 /** Conflict background: no conflict */ … … 83 82 FGCOLOR_MEMBER_REMOVE(marktr("Conflict foreground: remove member"), Color.black); 84 83 85 private final String name; 86 private final Color defaultColor; 84 private final ColorProperty property; 87 85 88 86 ConflictColors(String name, Color defaultColor) { 89 this.name = name; 90 this.defaultColor = defaultColor; 91 } 92 93 @Override 94 public String getColorName() { 95 return name; 96 } 97 98 @Override 99 public Color getDefaultValue() { 100 return defaultColor; 101 } 102 103 @Override 104 public String getSpecialName() { 105 return null; 87 property = new ColorProperty(name, defaultColor); 106 88 } 107 89 … … 111 93 */ 112 94 public Color get() { 113 return Main.pref.getColor(this);95 return property.get(); 114 96 } 115 97
Note:
See TracChangeset
for help on using the changeset viewer.