dbalek commented on a change in pull request #3333:
URL: https://github.com/apache/netbeans/pull/3333#discussion_r758249345
##########
File path:
ide/editor.completion/src/org/netbeans/spi/editor/completion/support/CompletionUtilities.java
##########
@@ -160,5 +164,152 @@ public static void renderHtml(ImageIcon icon, String
leftHtmlText, String rightH
defaultFont, defaultColor, PatchedHtmlRenderer.STYLE_TRUNCATE,
true, selected);
}
}
-
+
+ /**
+ * Creates a builder for simple {@link CompletionItem} instances.
+ *
+ * @param insertText a text to be inserted into a document when selecting
the item.
+ * @return newly created builder
+ *
+ * @since 1.60
+ */
+ public static CompletionItemBuilder newCompletionItemBuilder(String
insertText) {
+ return new CompletionItemBuilder(insertText);
+ }
+
+ /**
+ * Builder for simple {@link CompletionItem} instances.
Review comment:
Example usage added.
--
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