Changeset 6897 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2014-03-05T18:37:26+01:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/BugReportExceptionHandler.java
r6797 r6897 162 162 tr("You have encountered an error in JOSM. Before you file a bug report " + 163 163 "make sure you have updated to the latest version of JOSM here:")), GBC.eol()); 164 p.add(new UrlLabel(Main. JOSM_WEBSITE,2), GBC.eop().insets(8,0,0,0));164 p.add(new UrlLabel(Main.getJOSMWebsite(),2), GBC.eop().insets(8,0,0,0)); 165 165 p.add(new JMultilineLabel( 166 166 tr("You should also update your plugins. If neither of those help please " + … … 174 174 tr("Alternatively, if that does not work you can manually fill in the information " + 175 175 "below at this URL:")), GBC.eol()); 176 p.add(new UrlLabel(Main. JOSM_WEBSITE+"/newticket",2), GBC.eop().insets(8,0,0,0));176 p.add(new UrlLabel(Main.getJOSMWebsite()+"/newticket",2), GBC.eop().insets(8,0,0,0)); 177 177 if (Utils.copyToClipboard(text)) { 178 178 p.add(new JLabel(tr("(The text has already been copied to your clipboard.)")), GBC.eop()); … … 217 217 Utils.close(gzip); 218 218 219 return new URL(Main. JOSM_WEBSITE+"/josmticket?" +219 return new URL(Main.getJOSMWebsite()+"/josmticket?" + 220 220 "gdata="+Base64.encode(ByteBuffer.wrap(out.toByteArray()), true)); 221 221 } catch (IOException e) { … … 234 234 URL url = getBugReportUrl(debugText); 235 235 if (url != null) { 236 return new UrlLabel(url.toString(), Main. JOSM_WEBSITE+"/josmticket?...", 2);236 return new UrlLabel(url.toString(), Main.getJOSMWebsite()+"/josmticket?...", 2); 237 237 } 238 238 return null; -
trunk/src/org/openstreetmap/josm/tools/OsmUrlToBounds.java
r6889 r6897 304 304 double lon = (Math.round(dlon * decimals)); 305 305 lon /= decimals; 306 return Main. OSM_WEBSITE+ "/#map="+zoom+"/"+lat+"/"+lon;306 return Main.getOSMWebsite() + "/#map="+zoom+"/"+lat+"/"+lon; 307 307 } 308 308 } -
trunk/src/org/openstreetmap/josm/tools/WikiReader.java
r6642 r6897 30 30 */ 31 31 public WikiReader() { 32 this.baseurl = Main.pref.get("help.baseurl", Main. JOSM_WEBSITE);32 this.baseurl = Main.pref.get("help.baseurl", Main.getJOSMWebsite()); 33 33 } 34 34 … … 114 114 String b = ""; 115 115 String full = ""; 116 String baseurlus = baseurl.replace("https:","http:"); 117 String baseurlse = baseurlus.replace("http:","https:"); 116 118 for (String line = in.readLine(); line != null; line = in.readLine()) { 117 119 full += line; … … 136 138 b += line.replaceAll("<img ", "<img border=\"0\" ") 137 139 .replaceAll("<span class=\"icon\">.</span>", "") 138 .replaceAll("href=\"/", "href=\"" + baseurl + "/") 140 .replaceAll("href=\"/", "href=\"" + baseurlus + "/") 141 .replaceAll("href=\"/", "href=\"" + baseurlse + "/") 139 142 .replaceAll(" />", ">") 140 143 + "\n";
Note:
See TracChangeset
for help on using the changeset viewer.