See: Description
| Package | Description |
|---|---|
| org.netbeans.spi.java.hints | |
| org.netbeans.spi.java.hints.support |
spi.java.hints SPI to create custom Java hints, including code smell warnings, productivity tips, etc. Please see the Use Cases section for a guide on how to use this SPI.
Defining Project/hints/java-based folder, where provider for
hints customizers for Java-based projects should be stored.
Added declarative support for integer options. @IntegerOption can
be used with option name field, similar to @BooleanOption.
An option was added to Hint.Options, so that hint can declare
to be only shown in Inspect & transform dialog. Useful for computation-intensive
hints, which should only run on demand.
Added ErrorDescriptionFactory.forSpan to create the correct Java-enhanced ErrorDescription from a span.
Added support for using jackpot patterns from other modules (e.g. refactoring).
public static ErrorDescription hint(HintContext ctx) {} method in the
class. Annotate the method either with the @TriggerPattern
annotation (strongly recommended), or with the @TriggerTreeKind.
This method will be called when for parts of the code that match the given pattern, of for trees of the specified kinds.toEditorFix() method to get the Fix, if the transformation is going to be used inside Inspect&Transform.
test branding, so create Bundle_test.properties, and add
bundle keys into it for ErrorDescription and Fix display names, to isolate the test from changes in the production
Bundle.properties.
|
The sources for the module are in the NetBeans Mercurial repositories.
XXX no answer for deploy-dependencies
Read more about the implementation in the answers to architecture questions.
Built on June 20 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.