01: /*
02: * ImportFileAction.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.sql.SqlPanel;
17: import workbench.resource.ResourceMgr;
18:
19: /**
20: * Import a file into the current result set
21: * @author support@sql-workbench.net
22: */
23: public class ImportFileAction extends WbAction {
24: private SqlPanel client;
25:
26: public ImportFileAction(SqlPanel aClient) {
27: super ();
28: this .client = aClient;
29: this .initMenuDefinition("MnuTxtImportFile");
30: this .setMenuItemName(ResourceMgr.MNU_TXT_DATA);
31: this .setEnabled(false);
32: }
33:
34: public void executeAction(ActionEvent e) {
35: this.client.importFile();
36: }
37: }
|