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 (beforePack.equals(afterPack))
				return;
			
			
			layoutBar.getParent().layout();
			
			
			if (layoutBar.getParent() instanceof CoolBar) {
				CoolBar cb = (CoolBar) layoutBar.getParent();
				CoolItem[] items = cb.getItems();
				for (int i = 0; i < items.length; i++) {
					if (items[i].getControl() == layoutBar) {
						Point curSize = items[i].getSize();
						items[i].setSize(curSize.x+ (afterPack.x - beforePack.x),
									curSize.y+ (afterPack.y - beforePack.y));
						return;
					}
				}
			}
		}
	}
	/**
	 * Returns whether the tool bar control is created and not disposed.
	 * 
	 * @return <code>true</code> if the control is created and not disposed,
	 *         <code>false</code> otherwise
	 */
	private boolean toolBarExist() {