01: package de.ixdb.squirrel_sql.plugins.cache;
02:
03: import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
04: import net.sourceforge.squirrel_sql.client.session.action.ISessionAction;
05: import net.sourceforge.squirrel_sql.client.session.ISession;
06: import net.sourceforge.squirrel_sql.client.IApplication;
07: import net.sourceforge.squirrel_sql.fw.util.Resources;
08:
09: import java.awt.event.ActionEvent;
10:
11: import de.ixdb.squirrel_sql.plugins.cache.CachePlugin;
12:
13: public class ScriptFunctionAction extends SquirrelAction implements
14: ISessionAction {
15: private ISession _session;
16: private CachePlugin _plugin;
17:
18: public ScriptFunctionAction(IApplication app, Resources rsrc,
19: CachePlugin plugin) throws IllegalArgumentException {
20: super (app, rsrc);
21: _plugin = plugin;
22: }
23:
24: public void setSession(ISession session) {
25: _session = session;
26: }
27:
28: public void actionPerformed(ActionEvent evt) {
29: new ScriptFunctionCommand(_session, _plugin).execute();
30: }
31: }
|