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

Method populateSketchbookMenu

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

Source from the content-addressed store, hash-verified

1638
1639
1640 public void populateSketchbookMenu(JMenu menu) {
1641 boolean found = false;
1642 try {
1643 found = addSketches(menu, sketchbookFolder, false);
1644 } catch (IOException e) {
1645 Messages.showWarning("Sketchbook Menu Error",
1646 "An error occurred while trying to list the sketchbook.", e);
1647 }
1648 if (!found) {
1649 JMenuItem empty = new JMenuItem(Language.text("menu.file.sketchbook.empty"));
1650 empty.setEnabled(false);
1651 menu.add(empty);
1652 }
1653 }
1654
1655
1656 /*

Callers 2

rebuildSketchbookMenuMethod · 0.95
rebuildToolbarMenuMethod · 0.80

Calls 4

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

Tested by

no test coverage detected