Ignore:
Timestamp:
2017-10-12T16:02:15+02:00 (2 years ago)
Author:
bastiK
Message:

see #15410 - change preferences scheme for named colors - makes runtime color name registry obsolete

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/PaintColors.java

    r12966 r12987  
    77
    88import org.openstreetmap.josm.data.preferences.CachingProperty;
    9 import org.openstreetmap.josm.data.preferences.ColorProperty;
     9import org.openstreetmap.josm.data.preferences.NamedColorProperty;
    1010import org.openstreetmap.josm.gui.mappaint.MapPaintStyles;
    1111
     
    8484    private final String name;
    8585    private final Color defaultColor;
    86     private final ColorProperty baseProperty;
     86    private final NamedColorProperty baseProperty;
    8787    private final CachingProperty<Color> property;
    8888
    8989    PaintColors(String name, Color defaultColor) {
    90         baseProperty = new ColorProperty(name, defaultColor);
     90        baseProperty = new NamedColorProperty(name, defaultColor);
    9191        property = baseProperty.cached();
    9292        this.name = name;
     
    123123     * @since 10874
    124124     */
    125     public ColorProperty getProperty() {
     125    public NamedColorProperty getProperty() {
    126126        return baseProperty;
    127127    }
Note: See TracChangeset for help on using the changeset viewer.