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

Method insertImportMenu

app/src/processing/app/Mode.java:476–484  ·  view source on GitHub ↗

Re-insert the Import Library menu. Added function so that other modes need not have an 'import' menu. @since 3.0a6 @param sketchMenu the Sketch menu that's currently active

(JMenu sketchMenu)

Source from the content-addressed store, hash-verified

474 * @param sketchMenu the Sketch menu that's currently active
475 */
476 public void insertImportMenu(JMenu sketchMenu) {
477 // hard-coded as 4 in 3.0a5, change to 5 for 3.0a6, but... yuck
478 //sketchMenu.insert(mode.getImportMenu(), 4);
479 // This is -1 on when the editor window is first shown, but that's fine
480 // because the import menu has just been added in the Editor constructor.
481 if (importMenuIndex != -1) {
482 sketchMenu.insert(getImportMenu(), importMenuIndex);
483 }
484 }
485
486
487 public JMenu getImportMenu() {

Callers 1

windowActivatedMethod · 0.80

Calls 2

getImportMenuMethod · 0.95
insertMethod · 0.45

Tested by

no test coverage detected