Implements the cross-platform headache of opening URLs. Since 2.0a8, 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). The URL must also be properly
(String url)
| 155 | * (where possible). The URL must also be properly URL-encoded. |
| 156 | */ |
| 157 | static public void openURL(String url) { |
| 158 | try { |
| 159 | inst.openURL(url); |
| 160 | |
| 161 | } catch (Exception e) { |
| 162 | Messages.showWarning("Problem Opening URL", |
| 163 | "Could not open the URL\n" + url, e); |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | |
| 168 | /** |
no test coverage detected