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