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

Method removeImportMenu

app/src/processing/app/Mode.java:462–467  ·  view source on GitHub ↗

Rather than re-building the library menu for every open sketch (very slow and prone to bugs when updating libs, particularly with the contribs mgr), share a single instance across all windows. @since 3.0a6 @param sketchMenu the Sketch menu that's currently active

(JMenu sketchMenu)

Source from the content-addressed store, hash-verified

460 * @param sketchMenu the Sketch menu that's currently active
461 */
462 public void removeImportMenu(JMenu sketchMenu) {
463 JMenu importMenu = getImportMenu();
464 //importMenuIndex = sketchMenu.getComponentZOrder(importMenu);
465 importMenuIndex = Toolkit.getMenuItemIndex(sketchMenu, importMenu);
466 sketchMenu.remove(importMenu);
467 }
468
469
470 /**

Callers 1

windowDeactivatedMethod · 0.80

Calls 3

getImportMenuMethod · 0.95
getMenuItemIndexMethod · 0.95
removeMethod · 0.45

Tested by

no test coverage detected