Bug 55827 [Contributions] Need to remove refs to Platform.getDebugOption from JFace
build I20040323 Standalone JFace applications are currently broken due to several refs to Platform.getDebugOption in JFace, which is only available if Eclipse is running. Should have static flags for the various debug options in JFace, and initialize them from the Workbench.
bundles/org.eclipse.jface/src/org/eclipse/jface/action/ContributionManager.java
if (itemId != null && itemId.equalsIgnoreCase(id))
			return i;
	}
	return -1;
}
/**
 * Returns the index of the object in the internal structure. This is different from 
 * <code>indexOf(String id)</code> since some contribution items may not have an id.
 *  
 * @param item the contribution item 
 * @return the index, or -1 if the item is not found
 * @since 3.0
 */
protected int indexOf(IContributionItem item) {
	return contributions.indexOf(item);
}
/**
 * Insert the item at the given index.
 */
public void insert(int index, IContributionItem item) {
	if (index > contributions.size())
		throw new IndexOutOfBoundsException("inserting " + item.getId() + " at " + index); 
	if (allowItem(item)) {
	    item.setParent(this);
	    contributions.add(index, item);
	    itemAdded(item);
	}
}
/* (non-Javadoc)
 * Method declared on IContributionManager.