01: package de.ixdb.squirrel_sql.plugins.cache;
02:
03: import com.intersys.cache.CacheObject;
04: import com.intersys.cache.Dataholder;
05: import com.intersys.cache.jbind.JBindDatabase;
06: import com.intersys.classes.CharacterStream;
07: import com.intersys.objects.CacheDatabase;
08: import com.intersys.objects.CacheReader;
09: import com.intersys.objects.Database;
10: import com.intersys.objects.CacheException;
11: import net.n3.nanoxml.*;
12: import net.sourceforge.squirrel_sql.client.IApplication;
13: import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
14: import net.sourceforge.squirrel_sql.client.session.ISession;
15: import net.sourceforge.squirrel_sql.client.session.action.ISessionAction;
16: import net.sourceforge.squirrel_sql.fw.util.Resources;
17:
18: import javax.swing.*;
19: import java.awt.event.ActionEvent;
20: import java.io.StringReader;
21: import java.util.Vector;
22: import java.util.regex.Matcher;
23: import java.util.regex.Pattern;
24: import java.sql.Statement;
25:
26: public class ShowQueryPlanAction extends SquirrelAction implements
27: ISessionAction {
28: private ISession _session;
29: private CachePlugin _plugin;
30:
31: public static final String HREF_CLOSE_QUERY_PLAN = "#close query plan";
32: private QueryPlanTab _queryPlanTab;
33:
34: public ShowQueryPlanAction(IApplication app, Resources rsrc,
35: CachePlugin plugin) throws IllegalArgumentException {
36: super (app, rsrc);
37: _plugin = plugin;
38: }
39:
40: public void setSession(ISession session) {
41: _session = session;
42: }
43:
44: public void actionPerformed(ActionEvent evt) {
45: new ShowQueryPlanCommand(_session).execute();
46: }
47:
48: }
|