01: /*
02: * SaveAsNewWorkspaceAction.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: import workbench.resource.ResourceMgr;
18:
19: /**
20: * @author support@sql-workbench.net
21: */
22: public class SaveAsNewWorkspaceAction extends WbAction {
23: private MainWindow client;
24:
25: public SaveAsNewWorkspaceAction(MainWindow aClient) {
26: super ();
27: this .client = aClient;
28: this .initMenuDefinition("MnuTxtSaveAsNewWorkspace");
29: this .setMenuItemName(ResourceMgr.MNU_TXT_FILE);
30: this .setIcon(null);
31: }
32:
33: public void executeAction(ActionEvent e) {
34: this .client.saveWorkspace(null, false);
35: }
36:
37: }
|