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 javax.swing.*;
10: import java.awt.event.ActionEvent;
11: import java.sql.ResultSet;
12: import java.sql.SQLException;
13: import java.sql.Statement;
14: import java.sql.Connection;
15: import java.util.Vector;
16: import java.util.Hashtable;
17: import java.util.regex.Matcher;
18: import java.util.regex.Pattern;
19: import java.io.BufferedReader;
20: import java.io.IOException;
21:
22: import com.intersys.objects.*;
23: import com.intersys.cache.jbind.JBindDatabase;
24: import com.intersys.cache.Dataholder;
25: import com.intersys.cache.CacheObject;
26: import com.intersys.classes.CharacterStream;
27:
28: public class ShowProcessesAction extends SquirrelAction implements
29: ISessionAction {
30: private ISession _session;
31:
32: public ShowProcessesAction(IApplication app, Resources rsrc,
33: CachePlugin plugin) throws IllegalArgumentException {
34: super (app, rsrc);
35: }
36:
37: public void setSession(ISession session) {
38: _session = session;
39: }
40:
41: public void actionPerformed(ActionEvent e) {
42: new ShowProcessesCommand(_session).execute();
43: }
44:
45: }
|