01: /*
02: * ConfigureShortcutsAction.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 workbench.WbManager;
16: import workbench.gui.MainWindow;
17: import workbench.gui.settings.ShortcutEditor;
18:
19: /**
20: * Action to open the shortcut manager window.
21: * @see workbench.gui.settings.ShortcutEditor
22: * @author support@sql-workbench.net
23: */
24: public class ConfigureShortcutsAction extends WbAction {
25: public ConfigureShortcutsAction() {
26: super ();
27: initMenuDefinition("MnuTxtConfigureShortcuts");
28: removeIcon();
29: }
30:
31: public void executeAction(ActionEvent e) {
32: final MainWindow main = WbManager.getInstance()
33: .getCurrentWindow();
34: ShortcutEditor editor = new ShortcutEditor(main);
35: editor.showWindow();
36: }
37: }
|