Skip to content

Commit 8c60586

Browse files
author
GWA
committed
Feature: Intersystems Cache Plugin: Statistics/query plan is now searchable.
1 parent d67856c commit 8c60586

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

sql12/core/doc/changes.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Not yet released, available in our GIT repository, snapshots and future releases
66

77
Enhancements:
88

9+
Intersystems Cache Plugin: Statistics/query plan is now searchable.
10+
911
https://github.com/squirrel-sql-client/squirrel-sql-code/issues/48#issuecomment-2566434346
1012
Cell data popup: When the popup is pinned it is updated by table selection change and single mouse click.
1113

sql12/plugins/cache/src/net/sourceforge/squirrel_sql/plugins/cache/StatisticsAndQueryPlanAction.java

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
package net.sourceforge.squirrel_sql.plugins.cache;
22

3+
import java.awt.GridLayout;
4+
import java.awt.Rectangle;
5+
import java.awt.event.ActionEvent;
6+
import java.sql.Connection;
7+
import java.util.concurrent.ExecutorService;
8+
import java.util.concurrent.Executors;
9+
import javax.swing.ImageIcon;
10+
import javax.swing.JScrollPane;
11+
import javax.swing.SwingUtilities;
12+
313
import net.sourceforge.squirrel_sql.client.Main;
414
import net.sourceforge.squirrel_sql.client.action.SquirrelAction;
515
import net.sourceforge.squirrel_sql.client.session.ISQLPanelAPI;
616
import net.sourceforge.squirrel_sql.client.session.action.ISQLPanelAction;
717
import net.sourceforge.squirrel_sql.client.session.mainpanel.custompanel.CustomResultPanel;
818
import net.sourceforge.squirrel_sql.fw.datasetviewer.textdataset.DataSetTextArea;
19+
import net.sourceforge.squirrel_sql.fw.gui.textfind.TextFindCtrl;
920
import net.sourceforge.squirrel_sql.fw.sql.querytokenizer.IQueryTokenizer;
1021
import net.sourceforge.squirrel_sql.fw.util.StringManager;
1122
import net.sourceforge.squirrel_sql.fw.util.StringManagerFactory;
@@ -14,16 +25,6 @@
1425
import net.sourceforge.squirrel_sql.fw.util.log.ILogger;
1526
import net.sourceforge.squirrel_sql.fw.util.log.LoggerController;
1627

17-
import javax.swing.ImageIcon;
18-
import javax.swing.JScrollPane;
19-
import javax.swing.SwingUtilities;
20-
import java.awt.GridLayout;
21-
import java.awt.Rectangle;
22-
import java.awt.event.ActionEvent;
23-
import java.sql.Connection;
24-
import java.util.concurrent.ExecutorService;
25-
import java.util.concurrent.Executors;
26-
2728

2829
public class StatisticsAndQueryPlanAction extends SquirrelAction implements ISQLPanelAction
2930
{
@@ -73,7 +74,9 @@ public void actionPerformed(ActionEvent e)
7374
DataSetTextArea dataSetTextArea = new DataSetTextArea(s_stringMgr.getString("StatisticsAndQueryPlanAction.reading.stats.for.sql", cleanedSQL));
7475

7576
JScrollPane scrollPane = new JScrollPane(dataSetTextArea);
76-
resultPanel.add(scrollPane);
77+
TextFindCtrl textFindCtrl = new TextFindCtrl(dataSetTextArea, scrollPane, true);
78+
resultPanel.add(textFindCtrl.getContainerPanel());
79+
7780
SwingUtilities.invokeLater(() -> dataSetTextArea.scrollRectToVisible(new Rectangle(0, 0)));
7881

7982
Connection con = _sqlPanelAPI.getSession().getSQLConnection().getConnection();

0 commit comments

Comments
 (0)