01: /*
02: * AssignWorkspaceAction.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: * Action to assign the currently loaded workspace to the current connection profile
21: * @see workbench.gui.MainWindow#assignWorkspace()
22: * @see workbench.db.ConnectionProfile
23: * @see workbench.util.WbWorkspace
24: *
25: * @author support@sql-workbench.net
26: */
27: public class AssignWorkspaceAction extends WbAction {
28: private MainWindow client;
29:
30: public AssignWorkspaceAction(MainWindow aClient) {
31: super ();
32: this .client = aClient;
33: this .initMenuDefinition("MnuTxtAssignWorkspace", null);
34: this .setMenuItemName(ResourceMgr.MNU_TXT_WORKSPACE);
35: this .setIcon(null);
36: }
37:
38: public void executeAction(ActionEvent e) {
39: this.client.assignWorkspace();
40: }
41:
42: }
|