I should add...

I've seen references to "Java Hints" which assume more "Java Centrics".

In the IDE, for a Module...New...Java Hints which also assume follows the
"Java Centric" way of doing so,

AbstractHint class is identified as being deprecated

I assume the basis of the hint/fix mechanism started in Java, rolled out in
other places, and then may have started to migrate towards a newer more
language agnostic SPI interface.

I've seen some links online (see reference below; mainly from Geertjan)
about how to do some things with Annotations, Hints, and Fixes but I
believe this may be based on the "legacy Java Hint" way.  Much of this
seems to be older (2006-2011) which I'm suspecting while still valuable,
may not be the preferred current means of doing Hints/Fixes

Furthermore, how do these types of Hints, compare to those defined in the
Tools...Options...Editor...Hints area?  Do "Hints" defined elsewhere get
group or are present in this context in some way when registered properly?

On Slack, I've also heard mention of CSL (Common Scripting Language), which
seems to be another interface / package to implement language and parsing
support in some way which provides some Rule/Hint/Fix mechanisms as well.
 Is this another API I might want to consider (I believe the comment I saw
was in the 2016 timeframe - so maybe this is newer than Java Hints but not
sure)?  Is this the preferred route or the above mentioned "Newer" SPI
Fix/Hint route mentioned above is preferred.

Not specific to hints/fix (maybe should be a separate thread), but was
curious how that CSL compares to the newer LSP route?

Are there any newer tutorials, good examples (likely already in the
Netbeans code based) for the new Hint/Fix SPI interface?

Eric Bresie
[email protected]

References:

   1. https://blogs.oracle.com/geertjan/fixable-hint
   2.
   https://blogs.oracle.com/geertjan/netbeans-java-hints%3a-quick-dirty-guide
   3.
   
https://blogs.oracle.com/geertjan/java-hint-generator-for-netbeans-ide-61-beta
   4.
   
https://blogs.oracle.com/geertjan/creating-error-annotations-in-netbeans-ide-part-1
   5.
   
https://blogs.oracle.com/geertjan/creating-error-annotations-in-netbeans-ide-part-2
   6.
   
https://blogs.oracle.com/geertjan/creating-error-annotations-in-netbeans-ide-part-3
   7.
   
https://blogs.oracle.com/geertjan/creating-error-annotations-in-netbeans-ide-part-4
   8.
   
http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=6784
   9. http://wiki.netbeans.org/RubyHints#Ruby_Hints_And_Quick_Fixes



On Sat, Feb 27, 2021 at 10:24 AM Eric Bresie <[email protected]> wrote:

> I was trying to update some autocompletion logics in some netbeans code
> and was hoping someone could provide some suggestions and/or provide a good
> example of how to implement "Hints" and "Fixes" in the autocomplete context.
>
> Eric Bresie
> [email protected]
>

Reply via email to