toolBar.setContextMenuManager(popUpMenu);
toolBar.add(new GroupMarker("group.file"));
{
IToolBarManager toolBarX = new ToolBarManager();
toolBarX.add(new Separator(IWorkbenchActionConstants.NEW_GROUP));
toolBarX.add(new GroupMarker(IWorkbenchActionConstants.NEW_EXT));
toolBarX.add(new GroupMarker(IWorkbenchActionConstants.SAVE_GROUP));
toolBarX.add(getAction(ActionFactory.SAVE.getId()));
toolBarX.add(new GroupMarker(IWorkbenchActionConstants.SAVE_EXT));
toolBarX.add(getAction(ActionFactory.PRINT.getId()));
toolBarX.add(new GroupMarker(IWorkbenchActionConstants.PRINT_EXT));
toolBarX.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
toolBar.add(new ToolBarContributionItem(toolBarX,
IWorkbenchActionConstants.TOOLBAR_FILE));
}
toolBar.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
toolBar.add(new GroupMarker("group.nav"));
toolBar.add(new GroupMarker(IWorkbenchActionConstants.GROUP_EDITOR));
toolBar.add(new GroupMarker(IWorkbenchActionConstants.GROUP_HELP));
{
IToolBarManager toolBarX = new ToolBarManager();
toolBarX.add(new Separator(IWorkbenchActionConstants.GROUP_HELP));
toolBarX.add(new GroupMarker(IWorkbenchActionConstants.GROUP_APP));
toolBar.add(new ToolBarContributionItem(toolBarX,
IWorkbenchActionConstants.TOOLBAR_HELP));
}
}