Implements the cross-platform headache of opening URLs. For 2.0a8 and later, this requires the parameter to be an actual URL, meaning that you can't send it a file:// path without a prefix. It also just calls into Platform, which now uses java.awt.Desktop (where possible, meaning not on Linux) now
(String url)
| 145 | * As it happens the URL must also be properly URL-encoded. |
| 146 | */ |
| 147 | static public void openURL(String url) { |
| 148 | try { |
| 149 | inst.openURL(url); |
| 150 | |
| 151 | } catch (Exception e) { |
| 152 | Messages.showWarning("Problem Opening URL", |
| 153 | "Could not open the URL\n" + url, e); |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | |
| 158 | /** |
no test coverage detected