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
*/
	public void setLockLayout(boolean value) {
		if (!coolBarExist()) {
			return;
		}
		coolBar.setLocked(value);
	}
	
	/**
	 * Replaces the internal data structure with the given new order. Then force
	 * and update.
	 * @param newLayout a list of new order of contribution items.
	 */
	public void setLayout(ArrayList newLayout) {
		IContributionItem[] newItems = new IContributionItem[0];
		newItems = (IContributionItem[])newLayout.toArray(newItems);
		
		if (coolBar != null) {
			CoolItem[] coolItems = coolBar.getItems();
			for (int i=0; i < coolItems.length; i++) {
				dispose(coolItems[i]);
			}
		}
		
		internalSetItems(newItems);
		
		update(true);
	}
}