Bug 182714 [Contributions] Improve toolbar configurability
bundles/org.eclipse.jface/src/org/eclipse/jface/action/ContributionManager.java
}
		
		final IContributionItem oldItem = (IContributionItem) contributions
				.get(index);
		itemRemoved(oldItem);
		
		contributions.set(index, replacementItem);
		itemAdded(replacementItem); 
		
		for (int i = contributions.size() - 1; i > index; i--) {
			IContributionItem item = (IContributionItem) contributions.get(i);
			if ((item != null) && (identifier.equals(item.getId()))) {
				if (Policy.TRACE_TOOLBAR) {
					System.out
							.println("Removing duplicate on replace: " + identifier); 
				}
				contributions.remove(i);
				itemRemoved(item);
			}
		}
		return true; 
	}
	/**
	 * Sets whether this manager is dirty. When dirty, the list of contributions
	 * is not accurately reflected in the corresponding widgets.
	 * 
	 * @param dirty
	 *            <code>true</code> if this manager is dirty, and
	 *            <code>false</code> if it is up-to-date
	 */