01: package de.ixdb.squirrel_sql.plugins.cache;
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.ISession;
06: import net.sourceforge.squirrel_sql.client.session.action.ISessionAction;
07: import net.sourceforge.squirrel_sql.fw.util.Resources;
08:
09: import java.awt.event.ActionEvent;
10:
11: public class ScriptViewAction extends SquirrelAction implements
12: ISessionAction {
13: private ISession _session;
14: private CachePlugin _plugin;
15:
16: private static final String PREFIX_SQLUSER = "SQLUser.";
17:
18: public ScriptViewAction(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 ScriptViewCommand(_session).execute();
30: }
31: }
|