Implements the cross-platform headache of opening URLs TODO This code should be replaced by PApplet.link(), however that's not a static method (because it requires an AppletContext when used as an applet), so it's mildly trickier than just removing this method.
(String url)
| 2070 | * trickier than just removing this method. |
| 2071 | */ |
| 2072 | static public void openURL(String url) { |
| 2073 | try { |
| 2074 | BaseNoGui.getPlatform().openURL(url); |
| 2075 | } catch (Exception e) { |
| 2076 | showWarning(tr("Problem Opening URL"), |
| 2077 | format(tr("Could not open the URL\n{0}"), url), e); |
| 2078 | } |
| 2079 | } |
| 2080 | |
| 2081 | |
| 2082 | /** |
no test coverage detected