Skip to content

Commit 77ba5a9

Browse files
hyperlinks in info (server output) require mouse click to activate
1 parent 79dfab7 commit 77ba5a9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sqldev/src/main/java/org/utplsql/sqldev/ui/runner/RunnerPanel.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,12 @@ public void mouseClicked(final MouseEvent e) {
14171417
testServerOutputTextPane.setContentType("text/html");
14181418
testServerOutputTextPane.setMinimumSize(TEXTPANE_DIM);
14191419
testServerOutputTextPane.setPreferredSize(TEXTPANE_DIM);
1420-
testServerOutputTextPane.addHyperlinkListener(event -> openLink(event.getDescription()));
1420+
testServerOutputTextPane.addHyperlinkListener(event -> {
1421+
if (event.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
1422+
final String link = event.getDescription();
1423+
openLink(link);
1424+
}
1425+
});
14211426
final JScrollPane testServerOutputScrollPane = new JScrollPane(testServerOutputTextPane);
14221427
c.gridx = 0;
14231428
c.gridy = 0;

0 commit comments

Comments
 (0)