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