Bug 41743 [MenuMgmt] IContributionManager.remove has undocumented behavior
build 20030820 The doc for IContributionManager.remove says that null will be returned if "this manager has no contribution items with the given id". When I call remove on a menu with an invalid ID I get an IllegalArgumentException instead of a null return value.
bundles/org.eclipse.jface/src/org/eclipse/jface/action/ContributionManager.java
contributions.add(i,item);
				    itemAdded(item);
				}
				return;
			}
		}
	}
	throw new IllegalArgumentException("Group not found: " + groupName);
}
/* (non-Javadoc)
 * Method declared on IContributionManager.
 */
public void appendToGroup(String groupName, IAction action) {
	addToGroup(groupName, new ActionContributionItem(action), true);
}
/* (non-Javadoc)
 * Method declared on IContributionManager.
 */
public void appendToGroup(String groupName, IContributionItem item) {
	addToGroup(groupName, item, true);
}
/**
 * This method allows subclasses of <code>ContributionManager</code> to prevent
 * certain items in the contributions list.  <code>ContributionManager</code>
 * will either block or allow an addition based on the result of this method
 * call.  This can be used to prevent duplication, for example.
 * @param itemToAdd The contribution item to be added; may be <code>null</code>.
 * @return <code>true</code> if the addition should be allowed; 
 * <code>false</code> otherwise.  The default implementation allows all items.
 * @since 3.0