[netbeans] branch master updated (ceacfe52dc -> f49a2427f6)

2022-12-20 Thread matthiasblaesing
This is an automated email from the ASF dual-hosted git repository.

matthiasblaesing pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git


from ceacfe52dc FlatLaf: fix font of window title when using `--fontsize` 
argument (on Windows) (issue #5041)
 new 74a8f416a9 Fixing pattern matching of instanceof with pattern matching 
and binding pattern.
 new 56d4ab47a5 Fix unittests in spi.java.hints
 new f49a2427f6 Merge pull request #5121 from 
matthiasblaesing/hints_instanceof

The 7800 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../declarative/PatternMatchingInstanceof.hint | 37 ++
 .../declarative/PatternMatchingInstanceof.test | 83 ++
 .../modules/java/source/matching/CopyFinder.java   | 20 +-
 .../modules/java/hints/spiimpl/Utilities.java  |  4 +-
 .../modules/java/hints/spiimpl/UtilitiesTest.java  |  6 +-
 .../JavaHintsAnnotationProcessorTest.java  | 16 +
 .../spi/java/hints/matching/CopyFinderTest.java| 79 +++-
 7 files changed, 238 insertions(+), 7 deletions(-)
 create mode 100644 
java/java.hints.declarative/test/unit/src/org/netbeans/modules/java/hints/declarative/PatternMatchingInstanceof.hint
 create mode 100644 
java/java.hints.declarative/test/unit/src/org/netbeans/modules/java/hints/declarative/PatternMatchingInstanceof.test


-
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 master updated: FlatLaf: fix font of window title when using `--fontsize` argument (on Windows) (issue #5041)

2022-12-20 Thread lkishalmi
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new ceacfe52dc FlatLaf: fix font of window title when using `--fontsize` 
argument (on Windows) (issue #5041)
ceacfe52dc is described below

commit ceacfe52dc09478b5d762157afa15ec2611b2403
Author: Karl Tauber 
AuthorDate: Sat Dec 3 17:03:22 2022 +0100

FlatLaf: fix font of window title when using `--fontsize` argument (on 
Windows) (issue #5041)
---
 platform/o.n.swing.plaf/src/org/netbeans/swing/plaf/AllLFCustoms.java | 2 +-
 platform/o.n.swing.plaf/src/org/netbeans/swing/plaf/Startup.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/platform/o.n.swing.plaf/src/org/netbeans/swing/plaf/AllLFCustoms.java 
b/platform/o.n.swing.plaf/src/org/netbeans/swing/plaf/AllLFCustoms.java
index c09d9f69ee..e35adc40a3 100644
--- a/platform/o.n.swing.plaf/src/org/netbeans/swing/plaf/AllLFCustoms.java
+++ b/platform/o.n.swing.plaf/src/org/netbeans/swing/plaf/AllLFCustoms.java
@@ -112,7 +112,7 @@ final class AllLFCustoms extends LFCustoms {
 
 Map fontTranslation = new HashMap(5);
 
-if( "Nimbus".equals( UIManager.getLookAndFeel().getID() ) ) { //NOI18N
+if( UIManager.getFont("defaultFont") != null ) { //NOI18N
 switchFont("defaultFont", fontTranslation, uiFontSize, 
nbDialogPlain); // NOI18N
 }
 switchFont("controlFont", fontTranslation, uiFontSize, nbDialogPlain); 
// NOI18N
diff --git a/platform/o.n.swing.plaf/src/org/netbeans/swing/plaf/Startup.java 
b/platform/o.n.swing.plaf/src/org/netbeans/swing/plaf/Startup.java
index 3b49194721..2d7c828b48 100644
--- a/platform/o.n.swing.plaf/src/org/netbeans/swing/plaf/Startup.java
+++ b/platform/o.n.swing.plaf/src/org/netbeans/swing/plaf/Startup.java
@@ -537,7 +537,7 @@ public final class Startup {
   // Modify default font size to the font size passed as a 
command-line parameter
 if(uiFontSize>0) {
 Integer customFontSize = new Integer (uiFontSize);
-UIManager.put ("customFontSize", customFontSize);
+UIManager.put (LFCustoms.CUSTOM_FONT_SIZE, customFontSize);
 }
 Startup.uiClass = uiClass;
 Startup.themeURL = themeURL;


-
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