01: /*
02: * UndoExpandAction.java
03: *
04: * This file is part of SQL Workbench/J, http://www.sql-workbench.net
05: *
06: * Copyright 2002-2008, Thomas Kellerer
07: * No part of this code maybe reused without the permission of the author
08: *
09: * To contact the author please send an email to: support@sql-workbench.net
10: *
11: */
12: package workbench.gui.actions;
13:
14: import java.awt.event.ActionEvent;
15: import java.awt.event.InputEvent;
16: import java.awt.event.KeyEvent;
17:
18: import javax.swing.KeyStroke;
19: import workbench.gui.sql.SplitPaneExpander;
20: import workbench.resource.ResourceMgr;
21:
22: /**
23: * @author support@sql-workbench.net
24: */
25: public class UndoExpandAction extends WbAction {
26: private SplitPaneExpander client;
27:
28: public UndoExpandAction(SplitPaneExpander aClient) {
29: super ();
30: this .client = aClient;
31: this .initMenuDefinition("MnuTxtUndoExpand", KeyStroke
32: .getKeyStroke(KeyEvent.VK_U, InputEvent.ALT_MASK
33: | InputEvent.SHIFT_MASK));
34: this .setMenuItemName(ResourceMgr.MNU_TXT_VIEW);
35: this .setIcon(null);
36: }
37:
38: public void executeAction(ActionEvent e) {
39: this.client.undoExpand();
40: }
41: }
|