1 11 package org.eclipse.core.commands.operations; 12 13 import org.eclipse.core.runtime.IAdaptable; 14 import org.eclipse.core.runtime.IStatus; 15 import org.eclipse.core.runtime.Status; 16 17 26 public final class LinearUndoEnforcer extends LinearUndoViolationDetector { 27 30 public LinearUndoEnforcer() { 31 super(); 32 } 33 34 39 protected IStatus allowLinearRedoViolation(IUndoableOperation operation, 40 IUndoContext context, IOperationHistory history, IAdaptable uiInfo) { 41 return Status.CANCEL_STATUS; 42 } 43 44 49 protected IStatus allowLinearUndoViolation(IUndoableOperation operation, 50 IUndoContext context, IOperationHistory history, IAdaptable uiInfo) { 51 return Status.CANCEL_STATUS; 52 } 53 54 } 55 | Popular Tags |