01: /*
02: * ViewMessageLogAction.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.KeyEvent;
16: import javax.swing.KeyStroke;
17: import workbench.gui.sql.SqlPanel;
18: import workbench.resource.ResourceMgr;
19:
20: /**
21: * Select the messages panel of the SqlPanel
22: * @author support@sql-workbench.net
23: */
24: public class ViewMessageLogAction extends WbAction {
25: private SqlPanel panel;
26:
27: /**
28: * Creates a new instance of ViewMessageLogAction
29: */
30: public ViewMessageLogAction(SqlPanel p) {
31: super ();
32: this .panel = p;
33: this .initMenuDefinition("MnuTxtSelectMsgLog", KeyStroke
34: .getKeyStroke(KeyEvent.VK_F8, 0));
35: this .setMenuItemName(ResourceMgr.MNU_TXT_EDIT);
36: }
37:
38: public void executeAction(ActionEvent e) {
39: panel.showLogPanel();
40: }
41:
42: }
|