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

Method Mode

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

Source from the content-addressed store, hash-verified

88
89
90 public Mode(Base base, File folder) {
91 this.base = base;
92 this.folder = folder;
93 tokenMarker = createTokenMarker();
94
95 // Get paths for the libraries and examples in the mode folder
96 examplesFolder = new File(folder, "examples");
97 librariesFolder = new File(folder, "libraries");
98 referenceFolder = new File(folder, "reference");
99
100// rebuildToolbarMenu();
101 rebuildLibraryList();
102// rebuildExamplesMenu();
103
104 try {
105 for (File file : getKeywordFiles()) {
106 loadKeywords(file);
107 }
108 } catch (IOException e) {
109 Messages.showWarning("Problem loading keywords",
110 "Could not load keywords file for " + getTitle() + " mode.", e);
111 }
112 }
113
114
115 /**

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