MCPcopy Create free account
hub / github.com/benfry/processing4 / rebuildSketchbook

Method rebuildSketchbook

app/src/processing/app/Base.java:1927–1937  ·  view source on GitHub ↗

Synchronous version of rebuild, used when the sketchbook folder has changed, so that the libraries are properly re-scanned before those menus (and the examples window) are rebuilt.

()

Source from the content-addressed store, hash-verified

1925 * (and the examples window) are rebuilt.
1926 */
1927 public void rebuildSketchbook() {
1928 for (Mode mode : getModeList()) {
1929 mode.rebuildImportMenu(); // calls rebuildLibraryList
1930 mode.rebuildToolbarMenu();
1931 mode.rebuildExamplesFrame();
1932 }
1933 // Unlike libraries, examples, etc. the sketchbook is global
1934 // (because you need to be able to open sketches from the Mode
1935 // that you're not currently using).
1936 rebuildSketchbookFrame();
1937 }
1938
1939
1940 public void populateSketchbookMenu(JMenu menu) {

Callers 4

setSketchbookFolderMethod · 0.95
handleDeleteCodeMethod · 0.80
updateInternalMethod · 0.80
SketchbookFrameMethod · 0.80

Calls 5

getModeListMethod · 0.95
rebuildImportMenuMethod · 0.80
rebuildToolbarMenuMethod · 0.80
rebuildExamplesFrameMethod · 0.80

Tested by

no test coverage detected