1
/*FreeMind - A Program for creating and viewing Mindmaps
2
*Copyright (C) 2000-2004 Joerg Mueller, Daniel Polansky, Christian Foltin and others.
4
*See COPYING for Details
6
*This program is free software; you can redistribute it and/or
7
*modify it under the terms of the GNU General Public License
8
*as published by the Free Software Foundation; either version 2
9
*of the License, or (at your option) any later version.
11
*This program is distributed in the hope that it will be useful,
12
*but WITHOUT ANY WARRANTY; without even the implied warranty of
13
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
*GNU General Public License for more details.
16
*You should have received a copy of the GNU General Public License
17
*along with this program; if not, write to the Free Software
18
*Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20
* Created on 20.09.2004
22
/* $Id: RedoAction.java,v 1.1.2.1.2.2 2006/07/25 20:28:21 christianfoltin Exp $ */
24
package freemind.modes.mindmapmode.actions;
26
import javax.swing.ImageIcon;
28
import freemind.modes.mindmapmode.MindMapController;
29
import freemind.modes.mindmapmode.actions.xml.ActionPair;
32
public class RedoAction extends UndoAction {
33
private MindMapController controller;
35
public RedoAction(MindMapController controller) {
36
super(controller, controller.getText("redo"), new ImageIcon(controller.getResource("images/redo.png")), controller);
37
this.controller = controller;
42
protected void informUndoPartner(ActionPair pair) {
43
this.controller.undo.add(pair.reverse());
44
this.controller.undo.setEnabled(true);