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.

Bug 227959 - Add Option to suppress a hint in editor annotation bar
Summary: Add Option to suppress a hint in editor annotation bar
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.4
Hardware: PC Linux
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords: API, API_REVIEW_FAST
Depends on:
Blocks: 135483
  Show dependency tree
 
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
Exception Reporter:


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