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