MCPcopy Index your code
hub / github.com/benfry/processing4 / openURL

Method openURL

app/src/processing/app/Platform.java:157–165  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 11

mousePressedMethod · 0.95
buildLayoutMethod · 0.95
handleLinkMethod · 0.95
mousePressedMethod · 0.95
showReferenceFileMethod · 0.95
showChangesMethod · 0.95
mousePressedMethod · 0.95
mouseReleasedMethod · 0.95
buildHelpMenuMethod · 0.95
showReferenceMethod · 0.95

Calls 1

showWarningMethod · 0.95

Tested by

no test coverage detected