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

Method populateSketchbookMenu

app/src/processing/app/Base.java:1940–1953  ·  view source on GitHub ↗
(JMenu menu)

Source from the content-addressed store, hash-verified

1938
1939
1940 public void populateSketchbookMenu(JMenu menu) {
1941 boolean found = false;
1942 try {
1943 found = addSketches(menu, sketchbookFolder);
1944 } catch (Exception e) {
1945 Messages.showWarning("Sketchbook Menu Error",
1946 "An error occurred while trying to list the sketchbook.", e);
1947 }
1948 if (!found) {
1949 JMenuItem empty = new JMenuItem(Language.text("menu.file.sketchbook.empty"));
1950 empty.setEnabled(false);
1951 menu.add(empty);
1952 }
1953 }
1954
1955
1956 /**

Callers 1

rebuildToolbarMenuMethod · 0.80

Calls 4

addSketchesMethod · 0.95
showWarningMethod · 0.95
textMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected