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.session.mainpanel.SQLHistoryController;
06: import net.sourceforge.squirrel_sql.client.IApplication;
07:
08: import java.awt.event.ActionEvent;
09:
10: public class OpenSqlHistoryAction extends SquirrelAction implements
11: ISQLPanelAction {
12: private ISQLPanelAPI _panel;
13:
14: public OpenSqlHistoryAction(IApplication app) {
15: super (app);
16: }
17:
18: public void actionPerformed(ActionEvent e) {
19: new SQLHistoryController(_panel.getSession(), _panel, _panel
20: .getSQLHistoryItems());
21: }
22:
23: public void setSQLPanel(ISQLPanelAPI panel) {
24: _panel = panel;
25:
26: }
27: }
|