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

Method getIndexFile

app/src/processing/app/ui/Welcome.java:153–175  ·  view source on GitHub ↗
(boolean sketchbook)

Source from the content-addressed store, hash-verified

151
152
153 static private File getIndexFile(boolean sketchbook) {
154 String filename =
155 "welcome/" + (sketchbook ? "sketchbook.html" : "generic.html");
156
157 // version when running from command line for editing
158 File htmlFile = new File("../build/shared/lib/" + filename);
159 if (htmlFile.exists()) {
160 return htmlFile;
161 }
162 // processing/build/macosx/work/Processing.app/Contents/Java
163 // version for Scott to use for OS X debugging
164 htmlFile = Platform.getContentFile("../../../../../shared/lib/" + filename);
165 if (htmlFile.exists()) {
166 return htmlFile;
167 }
168
169 try {
170 return Base.getLibFile(filename);
171 } catch (Exception e) {
172 e.printStackTrace();
173 return null;
174 }
175 }
176
177
178 static public void main(String[] args) {

Callers 1

WelcomeMethod · 0.95

Calls 3

getContentFileMethod · 0.95
getLibFileMethod · 0.95
printStackTraceMethod · 0.45

Tested by

no test coverage detected