Changeset 26018 in osm for applications/editors/josm/plugins/toms
- Timestamp:
- 2011-05-20T13:51:38+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/toms/src/toms/dialogs/SmpDialogAction.java
r25148 r26018 220 220 221 221 dia = this; 222 String str = Main.pref.get("mappaint.style.sources"); //$NON-NLS-1$ 223 if (!str.contains("dev.openseamap.org")) { //$NON-NLS-1$ 224 if (!str.isEmpty()) //$NON-NLS-1$ 225 str += new String(new char[] { 0x1e }); 226 Main.pref.put("mappaint.style.sources", str //$NON-NLS-1$ 227 + "http://dev.openseamap.org/josm/seamark_styles.xml"); //$NON-NLS-1$ 222 for (int l = 0; ; l++) { 223 String entry = new String("mappaint.style.sources-list." + l); 224 String str = Main.pref.get(entry); 225 if (str == null || str.isEmpty()) { 226 String sep = new String(new char[] { 0x1e }); 227 Main.pref.put(entry, "http://dev.openseamap.org/josm/seamark_styles.xml" + sep + sep + "OpenSeaMap" + sep + "true"); 228 break; 229 } 230 if (str.contains("http://dev.openseamap.org/josm/seamark_styles.xml")) { 231 break; 232 } 228 233 } 229 234 }
Note:
See TracChangeset
for help on using the changeset viewer.