Bug 89031 [Undo/Redo] IWorkbench#getOperationSupport() marked experimental
IWorkbench#getOperationSupport() marked experimental
bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/operations/DefaultOperationHistory.java
Object[] filtered = filter(undoList, context);
		for (int i = 0; i < filtered.length; i++) {
			IUndoableOperation operation = (IUndoableOperation) filtered[i];
			if (context == GLOBAL_UNDO_CONTEXT || operation.getContexts().length == 1) {
				
				undoList.remove(operation);
				internalRemove(operation);
			} else {
				
				operation.removeContext(context);
			}
		}
		
		
		if (openComposite != null) {
			if (openComposite.hasContext(context)) {
				notifyNotOK(openComposite);
				openComposite = null;
			} 
		}
	}
	/*
	 * Force the redo history for the given context to contain max or less items.
	 */
	private void forceRedoLimit(IUndoContext context, int max) {
		Object[] filtered = filter(redoList, context);
		int size = filtered.length;
		if (size > 0) {
			int index = 0;