Bug 227959 - Add Option to suppress a hint in editor annotation bar
Add Option to suppress a hint in editor annotation bar
Status: RESOLVED FIXED
Product: java
Classification: Unclassified
Component: Hints
7.4
PC Linux
: P2 (vote)
: 7.4
Assigned To: Svata Dedic
issues@java
: API, API_REVIEW_FAST
Depends on:
Blocks: 135483
  Show dependency treegraph
 
Reported: 2013-03-26 16:51 UTC by Svata Dedic
Modified: 2013-04-03 22:10 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
:


Attachments
Proposed changes (3.99 KB, patch)
2013-03-26 16:51 UTC, Svata Dedic
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Svata Dedic 2013-03-26 16:51:04 UTC
Created attachment 133092 [details]
Proposed changes

Some hints may be so heavyweight, so their execution for the purpose of annotating the editor window should not be permitted.

Currently the @Hint.Options enum allows to specify a hint that does not appear in Inspect & Transform dialog, but an option that would prevent hint from appearing in editor options is missing.

I'm proposing to add a @Hint.Options.HEAVY constant which would declare the hint is 'heavyweight'; the editor options will filter it out from the display.

See the attached diff for the proposed change.
Comment 1 Svata Dedic 2013-04-02 20:23:18 UTC
No objections so far, I'm going to commit the change tomorrow.
Comment 2 Svata Dedic 2013-04-03 22:10:31 UTC
Implemented in http://hg.netbeans.org/jet-main/rev/91487d9e0c4c


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo