Bug 48604 Loss of old cool bar layout
Openning an old workspce in any integration build after I20031210 will cause pre-existing cool bar layout(cool item order) to be erased. The user will need to re-customize the cool bar layouts on each perspective to ensure its persistance when eclipse is shutdown.
bundles/org.eclipse.jface/src/org/eclipse/jface/action/CoolBarManager.java
}
		return coolBar;
	}
	
	/**
	 * Subclasses may extend this <code>ContributionManager</code> method, but
	 * must call <code>super.itemAdded</code>.
	 * 
	 * @see org.eclipse.jface.action.ContributionManager#itemAdded(org.eclipse.jface.action.IContributionItem)
	 */
	protected void itemAdded(IContributionItem item) {
		Assert.isNotNull(item);
		super.itemAdded(item);
		int insertedAt = indexOf(item);
		cbItemsCreationOrder.add(Math.min(Math.max(insertedAt, 0), cbItemsCreationOrder.size()),item);
	}
	
	/**
	 * Restores the canonical order of this cool bar manager. The canonical order
	 * is the order in which the contribution items where added.
	 */
	public void resetLayout() {
		for (ListIterator iterator=cbItemsCreationOrder.listIterator();iterator.hasNext();) {
			IContributionItem item = (IContributionItem)iterator.next();
			
			if ( (item.getId() != null) && (item.getId().equals(USER_SEPARATOR)) ) {
				iterator.remove();
			}
		}
		setLayout(cbItemsCreationOrder);