()
| 69 | /* *********************************************************************** */ |
| 70 | |
| 71 | synchronized void load() { |
| 72 | commands = Menus.getCommands(); |
| 73 | pluginsArray = Menus.getPlugins(); |
| 74 | root=doRootFromMenus(); |
| 75 | if (root==null || root.getChildCount()==0 ) return; // do nothing if there's no tree or a root w/o children |
| 76 | loadProperties(); |
| 77 | restoreVisiblePanels(); |
| 78 | if (panels.isEmpty()) |
| 79 | newPanel(root); |
| 80 | } |
| 81 | |
| 82 | /** Builds up a root tree from ImageJ's menu bar. |
| 83 | * The root tree replicates ImageJ's menu bar with its menus and their submenus. |
no test coverage detected