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

Location:
trunk/src/org/openstreetmap/josm/spi/preferences
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/spi/preferences/IPreferences.java

    r12881 r12987  
    55import java.util.List;
    66import java.util.Map;
     7import java.util.Set;
    78
    89/**
     
    234235    boolean putListOfMaps(String key, List<Map<String, String>> value);
    235236
     237    /**
     238     * Get the set of all keys that are mapped to a value in this preferences.
     239     * @return the set of all keys
     240     */
     241    Set<String> getKeySet();
    236242}
  • trunk/src/org/openstreetmap/josm/spi/preferences/ListSetting.java

    r12882 r12987  
    3737    private void consistencyTest() {
    3838        if (value != null && value.contains(null))
    39             throw new IllegalArgumentException("Error: Null as list element in preference setting");
     39            throw new IllegalArgumentException("Error: Null as list element in preference setting: " + value);
    4040    }
    4141
  • trunk/src/org/openstreetmap/josm/spi/preferences/MemoryPreferences.java

    r12906 r12987  
    22package org.openstreetmap.josm.spi.preferences;
    33
     4import java.util.Collections;
    45import java.util.HashMap;
    56import java.util.Map;
    67import java.util.Objects;
     8import java.util.Set;
    79
    810/**
     
    4143
    4244    @Override
     45    public Set<String> getKeySet() {
     46        return Collections.unmodifiableSet(settings.keySet());
     47    }
     48
     49    @Override
    4350    public void addPreferenceChangeListener(PreferenceChangedListener listener) {
    4451        // do nothing
Note: See TracChangeset for help on using the changeset viewer.