01: // This file is part of KeY - Integrated Deductive Software Design
02: // Copyright (C) 2001-2007 Universitaet Karlsruhe, Germany
03: // Universitaet Koblenz-Landau, Germany
04: // Chalmers University of Technology, Sweden
05: //
06: // The KeY system is protected by the GNU General Public License.
07: // See LICENSE.TXT for details.
08: //
09: //
10:
11: package de.uka.ilkd.key.proof;
12:
13: /** Encapsulates information describing changes to a proof tree, and
14: * used to notify proof tree listeners of the change. This event is
15: * used to encapsulate lost information after a node has been
16: * removed, e.g. the parent of the removed node and the node itself.
17: */
18:
19: public class ProofTreeRemovedNodeEvent extends ProofTreeEvent {
20:
21: private Node removedNode;
22:
23: /** Create ProofTreeRemovedNodeEvent if a node of the proof has
24: * been removed
25: * @param source the Proof where the event is happened
26: * @param node the Node that was the parent of the removed node
27: * @param removedNode the Node that has been removed
28: */
29: public ProofTreeRemovedNodeEvent(Proof source, Node node,
30: Node removedNode) {
31: super (source, node);
32: this .removedNode = removedNode;
33: }
34:
35: public Node getRemovedNode() {
36: return removedNode;
37: }
38: }
|