Bug 89031 [Undo/Redo] IWorkbench#getOperationSupport() marked experimental
IWorkbench#getOperationSupport() marked experimental
bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/operations/AbstractOperation.java
/**
	 * Set the label of the operation to the specified name.
	 * 
	 * @param name -
	 *            the string to be used for the label.
	 */
	public void setLabel(String name) {
		label = name;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.core.commands.operations.IUndoableOperation#hasContext(org.eclipse.core.commands.operations.IUndoContext)
	 */
	public boolean hasContext(IUndoContext context) {
		Assert.isNotNull(context);
		for (int i = 0; i< contexts.size(); i++) {
			IUndoContext otherContext = (IUndoContext)contexts.get(i);
			
			
			if (context.matches(otherContext) || otherContext.matches(context)) 
				return true;
		}
		return false;
	}
	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.core.commands.operations.IUndoableOperation#redo(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
	 */