(String link)
| 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 = |
nothing calls this directly
no test coverage detected