Mercurial > projects > dwt2
comparison org.eclipse.core.commands/src/org/eclipse/core/commands/operations/IContextReplacingOperation.d @ 12:bc29606a740c
Added dwt-addons in original directory structure of eclipse.org
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 14 Mar 2009 18:23:29 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
11:43904fec5dca | 12:bc29606a740c |
---|---|
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 org.eclipse.core.commands.operations.IContextReplacingOperation; | |
14 | |
15 import org.eclipse.core.commands.operations.IUndoContext; | |
16 | |
17 import java.lang.all; | |
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 } |