/** * member method to create a toolbar button for this tool, it is intended that this class be * overridden within more able GUI environments (in Swing we should have a tabbed interface) * * @param item the description of this tool */ protected void addThisTool(final MenuItemInfo item) { // see if this is an action button, or it toggles as part of a group if (item.getToggleGroup() == null) { _theToolbar.addTool(item.getTool(), item.getShortCut(), item.getMnemonic()); } else { _theToolbar.addToggleTool( item.getMenuName(), item.getTool(), item.getShortCut(), item.getMnemonic()); } }