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

Method Mode

app/src/processing/app/Mode.java:103–125  ·  view source on GitHub ↗
(Base base, File folder)

Source from the content-addressed store, hash-verified

101
102
103 public Mode(Base base, File folder) {
104 this.base = base;
105 this.folder = folder;
106 tokenMarker = createTokenMarker();
107
108 // Get paths for the libraries and examples in the mode folder
109 examplesFolder = new File(folder, "examples");
110 librariesFolder = new File(folder, "libraries");
111 referenceFolder = new File(folder, "reference");
112
113// rebuildToolbarMenu();
114 rebuildLibraryList();
115// rebuildExamplesMenu();
116
117 try {
118 for (File file : getKeywordFiles()) {
119 loadKeywords(file);
120 }
121 } catch (IOException e) {
122 Messages.showWarning("Problem loading keywords",
123 "Could not load keywords file for " + getTitle() + " mode.", e);
124 }
125 }
126
127
128 /**

Callers

nothing calls this directly

Calls 6

createTokenMarkerMethod · 0.95
rebuildLibraryListMethod · 0.95
getKeywordFilesMethod · 0.95
loadKeywordsMethod · 0.95
showWarningMethod · 0.95
getTitleMethod · 0.95

Tested by

no test coverage detected