Bug 303290 Typo in JFace ToolBarManager
Using the ToolBarManager class we noticed a small typo in the JavaDoc: /** * The tool bat control; <code>null</code> before creation and after * disposal. */ Says "bat" instead of "bar". While this is a private member it should still be correct. Assuming the code has not changed a lot please verify against the latest head version of this file. Thanks, Werner
bundles/org.eclipse.jface/src/org/eclipse/jface/action/ToolBarManager.java
if (e.childID != ACC.CHILDID_SELF) {
					ToolItem item = toolBar.getItem(e.childID);
					if (item != null) {
						String toolTip = item.getToolTipText();
						if (toolTip != null) {
							e.result = toolTip;
						}
					}
				}
			}
		};
	}
	/**
	 * Disposes of this tool bar manager and frees all allocated SWT resources.
	 * Notifies all contribution items of the dispose. Note that this method
	 * does not clean up references between this tool bar manager and its
	 * associated contribution items. Use <code>removeAll</code> for that
	 * purpose.
	 */
	public void dispose() {
		if (toolBarExist()) {
			toolBar.dispose();
		}
		toolBar = null;
		IContributionItem[] items = getItems();
		for (int i = 0; i < items.length; i++) {
			items[i].dispose();
		}
		if (getContextMenuManager() != null) {
			getContextMenuManager().dispose();