Bug 164375 [Undo] - WorkspaceUndoUtil shouldn't reset change count for any context
N20061112-0010, WinXP I noticed with the WorkspaceUndoMonitor tracing on that the workspace change count was being reset when undoing and redoing text changes from an editor. This should not be the case. The workspace undo monitor listener should only be responding to undo/redo operations that have the workbench/workspace context.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/undo/WorkspaceUndoMonitor.java
import org.eclipse.core.commands.operations.IOperationHistoryListener;
import org.eclipse.core.commands.operations.IUndoableOperation;
import org.eclipse.core.commands.operations.OperationHistoryEvent;
import org.eclipse.core.resources.IResourceChangeEvent;
import org.eclipse.core.resources.IResourceChangeListener;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.ide.undo.WorkspaceUndoUtil;
import org.eclipse.ui.internal.ide.Policy;
/**
 * WorkspaceUndoMonitor monitors the workspace for resource changes and
 * periodically checks the undo history to make sure it is valid.
 * 
 * This class is not intended to be instantiated or used by clients.
 * 
 * @since 3.3
 * 
 */
public class WorkspaceUndoMonitor {
	/**
	 * Singleton instance.
	 */
	private static WorkspaceUndoMonitor instance;
	/**
	 * Number of workspace changes that will cause validation of undo history
	 */
	private static int CHANGE_THRESHHOLD = 10;
	/**