This is an automated email from the ASF dual-hosted git repository.

neilcsmith 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 8d935fd1e7 Show missing system property tags in Javadoc popup.
     new 38da17c823 Merge pull request #5669 from neilcsmith-net/gh5403
8d935fd1e7 is described below

commit 8d935fd1e74736de883e0796d4bdccfbd53d6f7c
Author: Neil C Smith <[email protected]>
AuthorDate: Thu Mar 16 15:19:12 2023 +0000

    Show missing system property tags in Javadoc popup.
    
    Show system property name rather than empty text for system property
    tags in the Javadoc popup. Also attempt to show the String value of
    unknown tags rather than missing the text out entirely.
    
    Fixes #5403
---
 .../org/netbeans/api/java/source/ui/ElementJavadoc.java    | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git 
a/java/java.sourceui/src/org/netbeans/api/java/source/ui/ElementJavadoc.java 
b/java/java.sourceui/src/org/netbeans/api/java/source/ui/ElementJavadoc.java
index ed8edb9fa3..6d1df08284 100644
--- a/java/java.sourceui/src/org/netbeans/api/java/source/ui/ElementJavadoc.java
+++ b/java/java.sourceui/src/org/netbeans/api/java/source/ui/ElementJavadoc.java
@@ -39,6 +39,7 @@ import com.sun.source.doctree.SinceTree;
 import com.sun.source.doctree.SnippetTree;
 import com.sun.source.doctree.StartElementTree;
 import com.sun.source.doctree.SummaryTree;
+import com.sun.source.doctree.SystemPropertyTree;
 import com.sun.source.doctree.TextTree;
 import com.sun.source.doctree.ThrowsTree;
 import com.sun.source.doctree.UnknownBlockTagTree;
@@ -1332,6 +1333,19 @@ public class ElementJavadoc {
                     List<? extends DocTree> summary = summaryTag.getSummary();
                     sb.append(inlineTags(summary, docPath, doc, trees, null));
                     break;
+                case SYSTEM_PROPERTY:
+                    SystemPropertyTree systemPropTag = (SystemPropertyTree) 
tag;
+                    sb.append("<code>"); //NOI18N
+                    sb.append(systemPropTag.getPropertyName());
+                    sb.append("</code>"); //NOI18N
+                    break;
+                default:
+                    sb.append("<code>"); //NOI18N
+                    try {
+                        sb.append(XMLUtil.toElementContent(tag.toString()));
+                    } catch (IOException ioe) {}
+                    sb.append("</code>"); //NOI18N
+                    break;
             }
         }
         return sb;


---------------------------------------------------------------------
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