I am trying to implement smart code completion for a Spring Beans Context XML file
(http://spring-netbeans.sourceforge.net). When the user presses Ctrl+Space, I want to show items locally defined in the
XML file, and when the user presses Ctrl+Space again, I want to show all items (local + ones defined in referenced files).
CompletionResultSet.hasAdditionalItems() does the trick for me, but shows me the text "Imported Items. Press Ctrl+Space
again..." at the bottom of the completion pop up. This text is misleading in my usage context and I want to change it.
However there is no method exposed to change this text. This text should be configurable, as the smart completion is now
going to be used in XML files like Spring beans config as well as hibernate mapping/config files.
We are sorry, but presently there is no way to change this text through the Code Completion APIs. We'll have to find
Created attachment 55762 [details]
I would like to propose a small change to the editor/completion API to allow for customization of the text as requested
(diff is attached).
patch is OK for me
I know this is nitpick, but should not there be some sort of a separator between messages supplied by several completion
providers or should we just pick the first one? And I suppose, there will be related changes in existing completion
providers that need to call CRS.setHasAdditionalItemsText(), right? (at least in Java completion provider; obviously in
C++; maybe also in Ruby and others)
Otherwise the change is looking good, thanks.
I'm OK to update C++ text after integration by myself
changeset fc946e8c34d2 in main
changeset 3f8068e9891b in main