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

Method handleLink

app/src/processing/app/ui/Welcome.java:98–126  ·  view source on GitHub ↗
(String link)

Source from the content-addressed store, hash-verified

96 */
97
98 @Override
99 public void handleLink(String link) {
100 // The link will already have the full URL prefix
101 /*
102 if (link.endsWith("#sketchbook")) {
103 File folder = new File(Preferences.getSketchbookPath()).getParentFile();
104 ShimAWT.selectFolder(Language.text("preferences.sketchbook_location.popup"),
105 "sketchbookCallback", folder, this);
106 */
107
108 if (link.endsWith("#examples")) {
109 base.getDefaultMode().showExamplesFrame();
110
111 } else if (link.endsWith("#mouse")) {
112 openExample("Basics/Input/Mouse2D/Mouse2D.pde");
113
114 } else if (link.endsWith("#arctan")) {
115 openExample("Basics/Math/Arctangent/Arctangent.pde");
116
117 } else if (link.endsWith("#flocking")) {
118 openExample("Topics/Simulate/Flocking/Flocking.pde");
119
120 } else if (link.endsWith("#rotating")) {
121 openExample("Demos/Graphics/RotatingArcs/RotatingArcs.pde");
122
123 } else {
124 super.handleLink(link);
125 }
126 }
127
128 private void openExample(String examplePath) {
129 File examplesFolder =

Callers

nothing calls this directly

Calls 3

openExampleMethod · 0.95
showExamplesFrameMethod · 0.80
getDefaultModeMethod · 0.80

Tested by

no test coverage detected