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.
Currently hint code using @TriggerTreeKind is not invoked for Trees inside guarded blocks: typically the hint would produce a warning the user could not remove as the guarded section cannot be changed. Some hint(s) may however use the @TriggerTreeKind to collect information from the source tree - see issue #253553, so the hint implementor should be able to opt out off the automagic filter. See the diff for implementation and use.
Created attachment 154950 [details] Proposed changes
Last call, if no objections are sent, I'll apply the patch tomorrow.
R1. Why mix the names guarded and locked? Sorry for the late reply :-)
Initially it seemed to me that a more general term would cover more kinds of "code which is usually not changed"; on the second thought, I don't think we'll ever have something different than guarded blocks to protect editor's contents. Constant and its value will change to PROCESS_GUARDED and "processGuarded". Thanks.
Will be implemented as jet-main#ee478d3d4ad8
Oops sorry, jet-main#2f4864be94d4
Integrated into 'main-silver', will be available in build *201508050002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/2f4864be94d4 User: Svata Dedic <sdedic@netbeans.org> Log: #253861: TriggerOptions allows hint to specify additional trigger constraints