MCPcopy Index your code
hub / github.com/arduino/Arduino / rebuildSketchbookMenu

Method rebuildSketchbookMenu

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

Source from the content-addressed store, hash-verified

1078
1079
1080 protected void rebuildSketchbookMenu(JMenu menu) {
1081 menu.removeAll();
1082 addSketches(menu, BaseNoGui.getSketchbookFolder());
1083
1084 JMenu librariesMenu = JMenuUtils.findSubMenuWithLabel(menu, "libraries");
1085 if (librariesMenu != null) {
1086 menu.remove(librariesMenu);
1087 }
1088 JMenu hardwareMenu = JMenuUtils.findSubMenuWithLabel(menu, "hardware");
1089 if (hardwareMenu != null) {
1090 menu.remove(hardwareMenu);
1091 }
1092 }
1093
1094 private LibraryList getSortedLibraries() {
1095 LibraryList installedLibraries = BaseNoGui.librariesIndexer.getInstalledLibraries();

Callers 2

runMethod · 0.95
buildFileMenuMethod · 0.80

Calls 4

addSketchesMethod · 0.95
getSketchbookFolderMethod · 0.95
findSubMenuWithLabelMethod · 0.95
removeMethod · 0.45

Tested by

no test coverage detected