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: public class ScriptCdlAction extends SquirrelAction implements
12: ISessionAction {
13: private ISession _session;
14: private CachePlugin _plugin;
15:
16: public ScriptCdlAction(IApplication app, Resources rsrc,
17: CachePlugin plugin) throws IllegalArgumentException {
18: super (app, rsrc);
19: _plugin = plugin;
20: }
21:
22: public void setSession(ISession session) {
23: _session = session;
24: }
25:
26: public void actionPerformed(ActionEvent evt) {
27: new ScriptCdlCommand(_session, _plugin).execute();
28: }
29: }
|