Changeset 16590 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss
- Timestamp:
- 2020-06-10T08:04:42+02:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Functions.java
r16553 r16590 28 28 import org.openstreetmap.josm.data.osm.search.SearchCompiler.Match; 29 29 import org.openstreetmap.josm.data.osm.search.SearchParseError; 30 import org.openstreetmap.josm.data.preferences.NamedColorProperty; 30 31 import org.openstreetmap.josm.gui.MainApplication; 31 32 import org.openstreetmap.josm.gui.mappaint.Cascade; … … 768 769 * Obtains the JOSM'key {@link org.openstreetmap.josm.data.Preferences} string for key {@code key}, 769 770 * and defaults to {@code def} if that is null. 771 * 772 * If the default value can be {@linkplain Cascade#convertTo converted} to a {@link Color}, 773 * the {@link NamedColorProperty} is retrieved as string. 774 * 770 775 * @param env the environment 771 776 * @param key Key in JOSM preference … … 774 779 */ 775 780 public static String JOSM_pref(Environment env, String key, String def) { // NO_UCD (unused code) 776 return MapPaintStyles.getStyles().getPreferenceCached( key, def);781 return MapPaintStyles.getStyles().getPreferenceCached(env != null ? env.source : null, key, def); 777 782 } 778 783
Note:
See TracChangeset
for help on using the changeset viewer.