Changeset 15211 in josm for trunk/src/org/openstreetmap/josm/data/preferences/sources/MapPaintPrefHelper.java
- Timestamp:
- 2019-07-06T22:15:55+02:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/preferences/sources/MapPaintPrefHelper.java
r12846 r15211 7 7 import java.util.Arrays; 8 8 import java.util.Collection; 9 import java.util.HashMap;10 9 import java.util.List; 11 10 import java.util.Map; … … 14 13 15 14 import org.openstreetmap.josm.spi.preferences.Config; 15 import org.openstreetmap.josm.tools.ImageProvider; 16 16 import org.openstreetmap.josm.tools.Utils; 17 17 … … 84 84 defJosmMapcss.active = true; 85 85 defJosmMapcss.name = "standard"; 86 defJosmMapcss.icon = new ImageProvider("logo").getResource(); 86 87 defJosmMapcss.title = tr("JOSM default (MapCSS)"); 87 88 defJosmMapcss.description = tr("Internal style to be used as base for runtime switchable overlay styles"); … … 89 90 defPL2.active = false; 90 91 defPL2.name = "standard"; 92 defPL2.icon = new ImageProvider("dialogs/mappaint", "pl2_small").getResource(); 91 93 defPL2.title = tr("Potlatch 2"); 92 94 defPL2.description = tr("the main Potlatch 2 style"); … … 97 99 @Override 98 100 public Map<String, String> serialize(SourceEntry entry) { 99 Map<String, String> res = new HashMap<>(); 100 res.put("url", entry.url == null ? "" : entry.url); 101 res.put("title", entry.title == null ? "" : entry.title); 101 Map<String, String> res = super.serialize(entry); 102 102 res.put("active", Boolean.toString(entry.active)); 103 103 if (entry.name != null) {
Note:
See TracChangeset
for help on using the changeset viewer.