01: package net.sourceforge.squirrel_sql.client.session.action;
02:
03: import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
04: import net.sourceforge.squirrel_sql.client.session.ISQLPanelAPI;
05: import net.sourceforge.squirrel_sql.client.IApplication;
06:
07: import java.awt.event.ActionEvent;
08:
09: public class FileSaveAsAction extends SquirrelAction implements
10: ISQLPanelAction {
11: private ISQLPanelAPI _panel;
12:
13: public FileSaveAsAction(IApplication app) {
14: super (app);
15: }
16:
17: public void actionPerformed(ActionEvent e) {
18: _panel.fileSaveAs();
19: }
20:
21: public void setSQLPanel(ISQLPanelAPI panel) {
22: _panel = panel;
23: setEnabled(null != _panel);
24: }
25: }
|