01: /*
02: * ExpandResultAction.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:
21: import workbench.gui.sql.SqlPanel;
22: import workbench.resource.ResourceMgr;
23:
24: /**
25: * Expand the result panel in the editor to the full window size.
26: * @author support@sql-workbench.net
27: */
28: public class ExpandResultAction extends WbAction {
29: private SplitPaneExpander client;
30:
31: public ExpandResultAction(SplitPaneExpander expander) {
32: super ();
33: this .client = expander;
34: this .initMenuDefinition("MnuTxtExpandResult", KeyStroke
35: .getKeyStroke(KeyEvent.VK_R, InputEvent.CTRL_MASK
36: | InputEvent.SHIFT_MASK));
37: this .setMenuItemName(ResourceMgr.MNU_TXT_VIEW);
38: this .setIcon(null);
39: }
40:
41: public void executeAction(ActionEvent e) {
42: this.client.toggleLowerComponentExpand();
43: }
44: }
|