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

Method insertImportMenu

app/src/processing/app/Mode.java:536–544  ·  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

534 * @param sketchMenu the Sketch menu that's currently active
535 */
536 public void insertImportMenu(JMenu sketchMenu) {
537 // hard-coded as 4 in 3.0a5, change to 5 for 3.0a6, but... yuck
538 //sketchMenu.insert(mode.getImportMenu(), 4);
539 // This is -1 on when the editor window is first shown, but that's fine
540 // because the import menu has just been added in the Editor constructor.
541 if (importMenuIndex != -1) {
542 sketchMenu.insert(getImportMenu(), importMenuIndex);
543 }
544 }
545
546
547 public JMenu getImportMenu() {

Callers 1

windowActivatedMethod · 0.80

Calls 2

getImportMenuMethod · 0.95
insertMethod · 0.45

Tested by

no test coverage detected