- Timestamp:
- 2020-03-16T00:07:51+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/help/HelpBrowser.java
r16148 r16149 34 34 35 35 import org.openstreetmap.josm.actions.JosmAction; 36 import org.openstreetmap.josm.data.preferences.BooleanProperty; 36 37 import org.openstreetmap.josm.gui.HelpAwareOptionPane; 37 38 import org.openstreetmap.josm.gui.MainApplication; … … 52 53 public class HelpBrowser extends JFrame implements IHelpBrowser { 53 54 55 private static final BooleanProperty USE_EXTERNAL_BROWSER = new BooleanProperty("help.use-external-browser", false); 56 54 57 /** the unique instance */ 55 58 private static HelpBrowser instance; … … 103 106 public static void setUrlForHelpTopic(final String helpTopic) { 104 107 final HelpBrowser browser = getInstance(); 108 if (Boolean.TRUE.equals(USE_EXTERNAL_BROWSER.get())) { 109 SwingUtilities.invokeLater(() -> { 110 browser.loadRelativeHelpTopic(helpTopic); 111 OpenBrowser.displayUrl(browser.url); 112 }); 113 return; 114 } 105 115 SwingUtilities.invokeLater(() -> { 106 116 browser.openHelpTopic(helpTopic);
Note:
See TracChangeset
for help on using the changeset viewer.