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
for (int i = mi.length; --i >= srcIx;) {
                        ToolItem item = mi[i];
                        if (!item.isDisposed()) {
                            Control ctrl = item.getControl();
                            if (ctrl != null) {
                                item.setControl(null);
                                ctrl.dispose();
                            }
                            item.dispose();
                        }
                    }
                    setDirty(false);
                    
                } finally {
                    if (useRedraw) {
                        toolBar.setRedraw(true);
                    }
                }
				int newCount = toolBar.getItemCount();
				
				
				if (force)
					oldCount = newCount+1;
				
				relayout(toolBar, oldCount, newCount);
			}
		}