mbien commented on code in PR #9240:
URL: https://github.com/apache/netbeans/pull/9240#discussion_r2936737912


##########
ide/markdown/src/org/netbeans/modules/markdown/MarkdownViewerElement.java:
##########
@@ -289,4 +307,31 @@ private void linkHandler(HyperlinkEvent evt) {
             }
         }
     }
+
+    /**
+     * redraw document if profile changes or font setting changes
+     * @param evt 
+     */
+    public void colorProfileChange(PropertyChangeEvent evt) {
+        if (viewer == null) {
+            return;
+        }
+
+        String newValue =(evt.getNewValue() instanceof String ) ? (String) 
evt.getNewValue() : ""; // NOI18N

Review Comment:
   nitpick:
   ```java
       String newValue = evt.getNewValue() instanceof String value ? value : 
""; // NOI18N
   ```
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to