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)
| 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() { |
no test coverage detected