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
separator = ci;
					} else {
						if (separator != null) {
							if (clean.size() > 0) {
								clean.add(separator);
							}
							separator = null;
						}
						clean.add(ci);
					}
				}
				
				
				
				
				
				ToolItem[] mi = toolBar.getItems();
				ArrayList toRemove = new ArrayList(mi.length);
				for (int i = 0; i < mi.length; i++) {
					
					if (mi[i] == null)
						continue;
					
					Object data = mi[i].getData();
					if (data == null
							|| !clean.contains(data)
							|| (data instanceof IContributionItem && ((IContributionItem) data)
									.isDynamic())) {
						toRemove.add(mi[i]);