Changeset 4164 in josm
- Timestamp:
- 2011-06-25T00:05:35+02:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/preferences
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/AddWMSLayerPanel.java
r4015 r4164 108 108 try { 109 109 setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR)); 110 attemptGetCapabilities(s erviceUrlText.getText());110 attemptGetCapabilities(sanitize(serviceUrlText.getText())); 111 111 } finally { 112 112 setCursor(beforeCursor); … … 224 224 } 225 225 226 private String sanitize(String s) { 227 return s.replaceAll("[\r\n]+","").trim(); 228 } 229 226 230 private String buildTMSUrl() { 227 231 StringBuilder a = new StringBuilder("tms:"); 228 a.append( tmsURL.getText());232 a.append(sanitize(tmsURL.getText())); 229 233 return a.toString(); 230 234 } -
trunk/src/org/openstreetmap/josm/gui/preferences/ImageryPreference.java
r4126 r4164 444 444 public NewEntryAction() { 445 445 putValue(NAME, tr("New")); 446 putValue(SHORT_DESCRIPTION, tr(" add a new wms/tms entry by entering the url"));446 putValue(SHORT_DESCRIPTION, tr("Add a new WMS/TMS entry by entering the URL")); 447 447 putValue(SMALL_ICON, ImageProvider.get("dialogs", "add")); 448 448 } … … 464 464 public RemoveEntryAction() { 465 465 putValue(NAME, tr("Remove")); 466 putValue(SHORT_DESCRIPTION, tr(" remove entry"));466 putValue(SHORT_DESCRIPTION, tr("Remove entry")); 467 467 putValue(SMALL_ICON, ImageProvider.get("dialogs", "delete")); 468 468 updateEnabledState();
Note:
See TracChangeset
for help on using the changeset viewer.