Changeset 5936 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2013-05-07T13:46:58+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/help/HelpContentReader.java
r5915 r5936 47 47 BufferedReader in = null; 48 48 try { 49 con = Utils.openHttpConnection(new URL(helpTopicUrl)); 49 URL u = new URL(helpTopicUrl); 50 con = Utils.openHttpConnection(u); 50 51 con.connect(); 51 52 in = new BufferedReader(new InputStreamReader(con.getInputStream(),"utf-8")); 52 return prepareHelpContent(in, dotest );53 return prepareHelpContent(in, dotest, u); 53 54 } catch(MalformedURLException e) { 54 55 throw new HelpContentReaderException(e); … … 79 80 * @throws HelpContentReaderException thrown if an exception occurs 80 81 * @throws MissingHelpContentException thrown, if the content read isn't a help page 82 * @since 5935 81 83 */ 82 protected String prepareHelpContent(BufferedReader in, boolean dotest ) throws HelpContentReaderException {84 protected String prepareHelpContent(BufferedReader in, boolean dotest, URL url) throws HelpContentReaderException { 83 85 String s = ""; 84 86 try { 85 s = readFromTrac(in );87 s = readFromTrac(in, url); 86 88 } catch(IOException e) { 87 89 throw new HelpContentReaderException(e);
Note:
See TracChangeset
for help on using the changeset viewer.