Eclipse Platform
Release 3.3

org.eclipse.core.commands.operations
Interface IContextReplacingOperation

All Known Implementing Classes:
TriggeredOperations

public interface IContextReplacingOperation

IContextReplacingOperation defines an interface for undoable operations that can replace one undo context with another undo context. It is used by operations, such as composite operations, where removing and adding an undo context would not have the same semantic as replacing one undo context with another.

Since:
3.2

Method Summary
 void replaceContext(IUndoContext original, IUndoContext replacement)
          Replace the undo context of the receiver with the provided replacement undo context.
 

Method Detail

replaceContext

public void replaceContext(IUndoContext original,
                           IUndoContext replacement)
Replace the undo context of the receiver with the provided replacement undo context.

This message has no effect if the original undo context is not present in the receiver.

Parameters:
original - the undo context which is to be replaced
replacement - the undo context which is replacing the original

Eclipse Platform
Release 3.3

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.