This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
While working on bug 189558 I realized that it is not easy to provide Completion items from my AnnotationProcessor. The best I could achieve is at http://hg.netbeans.org/core-main/rev/b6bc25bce72e I want more: I am returning localized message for some reason, so it could be displayed somewhere. I want to provide hints while the cursor is at "Shortcuts/|". I want to position the cursor after the completion is made (I guess this is not part of the standard API, but when someone chooses "Menu/" the cursor shall be at "Menu/|", otherwise this forms horrible user experience). I am surprised the that when I return Completions.of("Menu/"), the inserted text is surrounded by "! It works for me right now, but will that work for inserting other values than strings?
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/fc74d32e4a87
Integrated into 'main-golden', will be available in build *201008250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/fc74d32e4a87 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #189709: CC does not query AP inside string, does not show descriptions - fixed.
I am afraid the problem is not fixed yet: - the Completion.getText() is not placed immediately after = - my processor's getCompletions is really slow (8s in my case) which triggers the slowness detector. We need a way (like setting different text instead of Please wait...) to prevent that. Let's wait for changes in 189558 to propagate to jet-main and test it on my real processor. I am also CCing Geertjan to help us achieve consistency of our support with the one in InteliJ.
Integrated into 'main-golden', will be available in build *201008260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/14e3ac807488 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #189709: CC does not query AP inside string, does not show descriptions - fix cont.
Much better. Thanks.