Changeset 12620 in josm for trunk/src/org/openstreetmap/josm/gui/help
- Timestamp:
- 2017-08-22T22:26:32+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/help/HelpBrowser.java
r12537 r12620 52 52 import org.openstreetmap.josm.tools.InputMapUtils; 53 53 import org.openstreetmap.josm.tools.LanguageInfo.LocaleType; 54 import org.openstreetmap.josm.tools.Logging; 54 55 import org.openstreetmap.josm.tools.OpenBrowser; 55 56 import org.openstreetmap.josm.tools.WindowGeometry; … … 142 143 css = new String(cf.getByteContent(), StandardCharsets.ISO_8859_1); 143 144 } catch (IOException e) { 144 Main.error(tr("Failed to read CSS file ''help-browser.css''. Exception is: {0}", e.toString()));145 Main.error(e);145 Logging.error(tr("Failed to read CSS file ''help-browser.css''. Exception is: {0}", e.toString())); 146 Logging.error(e); 146 147 return ss; 147 148 } … … 236 237 help.getEditorKit().read(new StringReader(content), document, 0); 237 238 } catch (IOException | BadLocationException e) { 238 Main.error(e);239 Logging.error(e); 239 240 } 240 241 help.setDocument(document); … … 300 301 content = reader.fetchHelpTopicContent(url, true); 301 302 } catch (MissingHelpContentException e) { 302 Main.trace(e);303 Logging.trace(e); 303 304 url = getHelpTopicUrl(buildAbsoluteHelpTopic(relativeHelpTopic, LocaleType.BASELANGUAGE)); 304 305 try { 305 306 content = reader.fetchHelpTopicContent(url, true); 306 307 } catch (MissingHelpContentException e1) { 307 Main.trace(e1);308 Logging.trace(e1); 308 309 url = getHelpTopicUrl(buildAbsoluteHelpTopic(relativeHelpTopic, LocaleType.ENGLISH)); 309 310 try { 310 311 content = reader.fetchHelpTopicContent(url, true); 311 312 } catch (MissingHelpContentException e2) { 312 Main.debug(e2);313 Logging.debug(e2); 313 314 this.url = url; 314 315 handleMissingHelpContent(relativeHelpTopic); 315 316 return; 316 317 } catch (HelpContentReaderException e2) { 317 Main.error(e2);318 Logging.error(e2); 318 319 handleHelpContentReaderException(relativeHelpTopic, e2); 319 320 return; 320 321 } 321 322 } catch (HelpContentReaderException e1) { 322 Main.error(e1);323 Logging.error(e1); 323 324 handleHelpContentReaderException(relativeHelpTopic, e1); 324 325 return; 325 326 } 326 327 } catch (HelpContentReaderException e) { 327 Main.error(e);328 Logging.error(e); 328 329 handleHelpContentReaderException(relativeHelpTopic, e); 329 330 return; … … 346 347 content = reader.fetchHelpTopicContent(url, true); 347 348 } catch (MissingHelpContentException e) { 348 Main.debug(e);349 Logging.debug(e); 349 350 this.url = url; 350 351 handleMissingHelpContent(absoluteHelpTopic); 351 352 return; 352 353 } catch (HelpContentReaderException e) { 353 Main.error(e);354 Logging.error(e); 354 355 handleHelpContentReaderException(absoluteHelpTopic, e); 355 356 return; … … 377 378 this.url = url; 378 379 } catch (HelpContentReaderException e) { 379 Main.warn(e);380 Logging.warn(e); 380 381 HelpAwareOptionPane.showOptionDialog( 381 382 Main.parent, … … 587 588 } 588 589 } catch (BadLocationException e) { 589 Main.warn(tr("Bad location in HTML document. Exception was: {0}", e.toString()));590 Main.error(e);590 Logging.warn(tr("Bad location in HTML document. Exception was: {0}", e.toString())); 591 Logging.error(e); 591 592 } 592 593 }
Note:
See TracChangeset
for help on using the changeset viewer.