01: /*
02: * FileNewWindowAction.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:
16: import workbench.WbManager;
17:
18: /**
19: * Open a new SQL MainWindow
20: * @author support@sql-workbench.net
21: */
22: public class FileNewWindowAction extends WbAction {
23: public FileNewWindowAction() {
24: super ();
25: this .initMenuDefinition("MnuTxtFileNewWindow");
26: //this.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_N, InputEvent.CTRL_MASK));
27: }
28:
29: public void executeAction(ActionEvent e) {
30: WbManager.getInstance().openNewWindow();
31: }
32: }
|