comparison dwtx/core/commands/operations/IContextReplacingOperation.d @ 3:6518c18a01f7

eclipse.core package without osgi dependencies
author Frank Benoit <benoit@tionex.de>
date Wed, 26 Mar 2008 00:57:19 +0100
parents
children
comparison
equal deleted inserted replaced
2:a012107a911c 3:6518c18a01f7
1 /*******************************************************************************
2 * Copyright (c) 2005, 2006 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/
13 module dwtx.core.commands.operations.IContextReplacingOperation;
14
15 import dwtx.core.commands.operations.IUndoContext;
16
17 import dwt.dwthelper.utils;
18
19 /**
20 * IContextReplacingOperation defines an interface for undoable operations that
21 * can replace one undo context with another undo context. It is used by
22 * operations, such as composite operations, where removing and adding an undo
23 * context would not have the same semantic as replacing one undo context with
24 * another.
25 *
26 * @since 3.2
27 *
28 */
29 public interface IContextReplacingOperation {
30
31 /**
32 * Replace the undo context of the receiver with the provided replacement
33 * undo context.
34 * <p>
35 * This message has no effect if the original undo context is not present in
36 * the receiver.
37 *
38 * @param original the undo context which is to be replaced
39 * @param replacement the undo context which is replacing the original
40 *
41 */
42 void replaceContext(IUndoContext original, IUndoContext replacement);
43 }