01: /*
02: * ShowHelpAction.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.help.HelpManager;
18: import workbench.resource.ResourceMgr;
19:
20: /**
21: * @author support@sql-workbench.net
22: */
23: public class ShowHelpAction extends WbAction {
24: public ShowHelpAction() {
25: super ();
26: initMenuDefinition("MnuTxtHelpContents", KeyStroke
27: .getKeyStroke(KeyEvent.VK_F1, 0));
28: setIcon(ResourceMgr.getImage("help"));
29: }
30:
31: public synchronized void executeAction(ActionEvent e) {
32: HelpManager.showHelpIndex();
33: }
34:
35: }
|