Currently, the correct warnings for Java (with the additional sub-fixes) can only be created for Tree's name or span. But, in some cases, the required span of the warning does not match to any given tree (e.g. in the javadoc), which forces use of spi.editor.hints' ErrorDescriptionFactory, which does not produce the enhanced ErrorDescription as does the spi.java.hints' ErrorDescriptionFactory. The proposal here is to introduce a new method to the s.j.h's EDF to produce ED from a span.
Created attachment 129265 [details]
Proposed API change.
Please review. Thanks.
Thanks for the review, integrated:
Integrated into 'main-golden', will be available in build *201212220001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Jan Lahoda <email@example.com>
Log: #223723: introducing ErrorDescriptionFactory.forSpan