/** Creates the toolbar GUI contributions */ private void createToolbar() { IToolBarManager tm = getViewSite().getActionBars().getToolBarManager(); tm.add(refresh); group.fillActionBars(getViewSite().getActionBars()); tm.add(showRoot); tm.add(zoom); }
/** Creates the menu GUI contributions */ private void createMenu() { MenuManager mm = new MenuManager(); graphViewer.getGraphControl().setMenu(mm.createContextMenu(graphViewer.getGraphControl())); mm.add(toggleOpen); // mm.add(hideNode); // mm.add(showChilds); mm.add(new Separator()); mm.add(showRoot); getSite().registerContextMenu(mm, graphViewer); IMenuManager imm = getViewSite().getActionBars().getMenuManager(); imm.add(refresh); group.fillContextMenu(imm); imm.add(new Separator()); imm.add(zoom); imm.add(saveImage); }