MCPcopy Index your code
hub / github.com/processing/processing / openURL

Method openURL

app/src/processing/app/Platform.java:147–155  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 /**

Callers 10

hyperlinkUpdateMethod · 0.95
hyperlinkUpdateMethod · 0.95
handleLinkMethod · 0.95
showReferenceFileMethod · 0.95
showChangesMethod · 0.95
mouseClickedMethod · 0.95
mousePressedMethod · 0.95
actionPerformedMethod · 0.95
mousePressedMethod · 0.95

Calls 1

showWarningMethod · 0.95

Tested by

no test coverage detected