(netbeans-html4j) branch master updated: Upgrading to latest Frgaal compiler

2023-11-12 Thread jtulach
This is an automated email from the ASF dual-hosted git repository.

jtulach pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans-html4j.git


The following commit(s) were added to refs/heads/master by this push:
 new 30331ae5 Upgrading to latest Frgaal compiler
30331ae5 is described below

commit 30331ae597585e0fcd56a52676e7417d7f57bdbe
Author: Jaroslav Tulach 
AuthorDate: Mon Nov 13 05:34:17 2023 +0100

Upgrading to latest Frgaal compiler
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 6f388e69..de3c2ecd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -289,7 +289,7 @@ 
org.netbeans.html.boot.impl:org.netbeans.html.boot.fx:org.netbeans.html.context.
 
 compiler-maven-plugin
 org.frgaal
-20.0.0
+21.0.0
 
 
 


-
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



(netbeans) branch delivery updated: Limit msg length in test window by default.

2023-11-12 Thread neilcsmith
This is an automated email from the ASF dual-hosted git repository.

neilcsmith pushed a commit to branch delivery
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/delivery by this push:
 new 819891d769 Limit msg length in test window by default.
 new 7f6f105dcf Merge pull request #6688 from 
mbien/limit-test-msg-line-length
819891d769 is described below

commit 819891d769a91ef9f30ba4dd4afba91fe27b9f28
Author: Michael Bien 
AuthorDate: Sun Nov 12 00:12:18 2023 +0100

Limit msg length in test window by default.

Some tests may have very long messages passed to junit Assert or
Exception causes. Unlimited UI component sizes can cause problems,
e.g the X server can freeze while moving the mouse over the test
window when it renders the tree node overlay at full length.

Limit is set to all environments to simplify code, infinite length
one-liners have questionable use anyway.

The full msg is always visible when the tree node is expanded in its
formatted form (including line breaks).

Code cleanup: some warnings were dealt with
---
 .../gsf/testrunner/ui/api/TestsuiteNode.java   | 42 ++
 1 file changed, 10 insertions(+), 32 deletions(-)

diff --git 
a/ide/gsf.testrunner.ui/src/org/netbeans/modules/gsf/testrunner/ui/api/TestsuiteNode.java
 
b/ide/gsf.testrunner.ui/src/org/netbeans/modules/gsf/testrunner/ui/api/TestsuiteNode.java
index 1859b9dd53..0c2c6899dd 100644
--- 
a/ide/gsf.testrunner.ui/src/org/netbeans/modules/gsf/testrunner/ui/api/TestsuiteNode.java
+++ 
b/ide/gsf.testrunner.ui/src/org/netbeans/modules/gsf/testrunner/ui/api/TestsuiteNode.java
@@ -24,7 +24,6 @@ import java.util.ArrayList;
 import java.util.List;
 import java.util.MissingResourceException;
 import javax.swing.Action;
-import javax.swing.UIManager;
 import org.netbeans.modules.gsf.testrunner.api.OutputLine;
 import org.netbeans.modules.gsf.testrunner.api.Report;
 import org.netbeans.modules.gsf.testrunner.api.Status;
@@ -47,20 +46,22 @@ public class TestsuiteNode extends AbstractNode {
  * The max number of output lines to display in the tooltip.
  */
 static final int MAX_TOOLTIP_LINES = 
Integer.getInteger("testrunner.max.tooltip.lines", 4); //NOI18N
+
 /**
  * The max line length to display in the tooltip.
  */
 private static final int MAX_TOOLTIP_LINE_LENGTH = 
Integer.getInteger("testrunner.max.tooltip.line.length", 80); //NOI18N
+
 /**
  * The system property for enabling/disabling tooltips.
  */
-static final boolean DISPLAY_TOOLTIPS = 
Boolean.valueOf(System.getProperty("testrunner.display.tooltips", 
"true"));//NOI18N
+static final boolean DISPLAY_TOOLTIPS = 
Boolean.parseBoolean(System.getProperty("testrunner.display.tooltips", 
"true"));//NOI18N
+
 /**
  * The max line length to display in the messages.
  * 
  * By default, the max line length for the messages in the Test Results
- * window will be set to 120 for the GTK look and feel or JDK8, and won't 
be limited
- * for other look and feels or JDKs. For any look and feel or JDK a user 
can change the
+ * window will be set to 250. A user can change the
  * default setting via the system property
  * {@code testrunner.max.msg.line.length=MAX_LINE_LENGTH},
  * where  {@code MAX_LINE_LENGTH} is a desired value.
@@ -69,9 +70,7 @@ public class TestsuiteNode extends AbstractNode {
  * See Issue #175430
  * See Issue #188632
  */
-static final int MAX_MSG_LINE_LENGTH = 
-  Integer.getInteger("testrunner.max.msg.line.length", //NOI18N
- isGTK() || isJDK8() ? 120 : Integer.MAX_VALUE);
+static final int MAX_MSG_LINE_LENGTH = 
Integer.getInteger("testrunner.max.msg.line.length", 250);
 
 protected String suiteName;
 protected TestSuite suite;
@@ -207,7 +206,7 @@ public class TestsuiteNode extends AbstractNode {
 public void displayReport(final Report report) {
 assert (report != null);
 assert report.getSuiteClassName().equals(this.suiteName)
-   || (this.suiteName == TestSuite.ANONYMOUS_SUITE);
+   || TestSuite.ANONYMOUS_SUITE.equals(this.suiteName);
 
 this.report = report;
 suiteName = report.getSuiteClassName();
@@ -274,7 +273,7 @@ public class TestsuiteNode extends AbstractNode {
 assert suiteName != null;
 
 StringBuilder buf = new StringBuilder(60);
-if (suiteName != TestSuite.ANONYMOUS_SUITE) {
+if (!TestSuite.ANONYMOUS_SUITE.equals(suiteName)) {
 buf.append(suiteName);
 } else {
 buf.append(Bundle.MSG_TestsuiteNoname());
@@ -304,7 +303,7 @@ public class TestsuiteNode extends AbstractNode {
 "MSG_TestsuiteAborted_HTML=Aborted",
 "MSG_TestsuiteSkipped_HTML=Skipped"})
 static String suiteStatusToMsg(Status status, boolean 

(netbeans) branch delivery updated: Don't scroll output window on link click.

2023-11-12 Thread neilcsmith
This is an automated email from the ASF dual-hosted git repository.

neilcsmith pushed a commit to branch delivery
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/delivery by this push:
 new ab220159e3 Don't scroll output window on link click.
 new 81ac164a88 Merge pull request #6679 from 
mbien/dont-scroll-output-on-click
ab220159e3 is described below

commit ab220159e33cb228193890de13dd28fff14a7f2a
Author: Michael Bien 
AuthorDate: Thu Nov 9 22:44:17 2023 +0100

Don't scroll output window on link click.

 - adds another boolean to control if caret positioning should scroll
 - calls it with false on link clicks, default remains true
 - adds override annotation to the hierarchy to be able to safely make
   changes. This also exposed duplicated/dead code which was removed
 - luckily its all internal API
---
 .../src/org/netbeans/core/output2/OutputPane.java  |  9 
 .../src/org/netbeans/core/output2/OutputTab.java   | 42 +-
 .../core/output2/ui/AbstractOutputPane.java| 50 +-
 3 files changed, 60 insertions(+), 41 deletions(-)

diff --git 
a/platform/core.output2/src/org/netbeans/core/output2/OutputPane.java 
b/platform/core.output2/src/org/netbeans/core/output2/OutputPane.java
index df10c56901..13455a0aeb 100644
--- a/platform/core.output2/src/org/netbeans/core/output2/OutputPane.java
+++ b/platform/core.output2/src/org/netbeans/core/output2/OutputPane.java
@@ -48,10 +48,12 @@ class OutputPane extends AbstractOutputPane {
 findOutputTab().documentChanged(this);
 }
 
+@Override
 protected void caretPosChanged(int pos) {
 findOutputTab().caretPosChanged(pos);
 }
 
+@Override
 protected void lineClicked(int line, int pos) {
 if ((getDocument() instanceof OutputDocument)) {
 findOutputTab().lineClicked(line, pos);
@@ -64,6 +66,7 @@ class OutputPane extends AbstractOutputPane {
 findOutputTab().enterPressed(caret.getMark(), caret.getDot());
 }
 
+@Override
 protected void postPopupMenu(Point p, Component src) {
 if (src.isShowing()) {
 findOutputTab().postPopupMenu(p, src);
@@ -116,6 +119,7 @@ class OutputPane extends AbstractOutputPane {
 }
 
 
+@Override
 public void setWrapped (boolean val) {
 if (val != isWrapped() || !(getEditorKit() instanceof 
OutputEditorKit)) {
 NbPreferences.forModule(OutputPane.class).putBoolean("wrap", val); 
//NOI18N
@@ -138,6 +142,7 @@ class OutputPane extends AbstractOutputPane {
 //been fully readjusted to its new dimensions, scroll bounds, etc.
 SwingUtilities.invokeLater (new Runnable() {
 private boolean first = true;
+@Override
 public void run() {
 if (first) {
 first = false;
@@ -160,6 +165,7 @@ class OutputPane extends AbstractOutputPane {
 }
 }
 
+@Override
 public boolean isWrapped() {
 if (getEditorKit() instanceof OutputEditorKit) {
 return getEditorKit() instanceof OutputEditorKit 
@@ -169,6 +175,7 @@ class OutputPane extends AbstractOutputPane {
 }
 }
 
+@Override
 protected JEditorPane createTextView() {
 JEditorPane result = new JEditorPane();
 if ("Aqua".equals(UIManager.getLookAndFeel().getID())) {
@@ -187,6 +194,7 @@ class OutputPane extends AbstractOutputPane {
 result.setInputMap(JEditorPane.WHEN_FOCUSED, myMap);
 
 Action act = new AbstractAction() {
+@Override
 public void actionPerformed(ActionEvent arg0) {
 OutputDocument od 
=(OutputDocument)((JEditorPane)arg0.getSource()).getDocument();
 findOutputTab().inputSent(od.sendLine());
@@ -195,6 +203,7 @@ class OutputPane extends AbstractOutputPane {
 result.getActionMap().put("SENDLINE", act);
 
 act = new AbstractAction() {
+@Override
 public void actionPerformed(ActionEvent arg0) {
 OutputDocument od 
=(OutputDocument)((JEditorPane)arg0.getSource()).getDocument();
 findOutputTab().inputSent(od.sendLine());
diff --git a/platform/core.output2/src/org/netbeans/core/output2/OutputTab.java 
b/platform/core.output2/src/org/netbeans/core/output2/OutputTab.java
index 0c61bc0a63..7775395541 100644
--- a/platform/core.output2/src/org/netbeans/core/output2/OutputTab.java
+++ b/platform/core.output2/src/org/netbeans/core/output2/OutputTab.java
@@ -33,7 +33,6 @@ import java.awt.event.ActionListener;
 import java.awt.event.KeyEvent;
 import java.beans.PropertyChangeEvent;
 import java.beans.PropertyChangeListener;
-import java.io.CharConversionException;
 import java.io.File;
 import java.io.IOException;
 import java.util.ArrayList;
@@ -51,7 +50,6 @@ import javax.swing.JMenu;
 import