01: /*
02: * NewDbExplorerPanelAction.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.gui.MainWindow;
17:
18: /**
19: * @author support@sql-workbench.net
20: */
21: public class NewDbExplorerPanelAction extends WbAction {
22: private MainWindow mainWin;
23:
24: public NewDbExplorerPanelAction(MainWindow aWindow) {
25: this (aWindow, "MnuTxtNewExplorerPanel");
26: }
27:
28: public NewDbExplorerPanelAction(MainWindow aWindow, String key) {
29: super ();
30: mainWin = aWindow;
31: this .initMenuDefinition(key);
32: }
33:
34: public void executeAction(ActionEvent e) {
35: mainWin.newDbExplorerPanel(true);
36: }
37: }
|