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 227962 - Allow to execute just a specific hint from a Hint class
Summary: Allow to execute just a specific hint from a Hint class
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:
 
Reported: 2013-03-26 17:07 UTC by Svata Dedic
Modified: 2013-04-03 22:09 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Proposed changes (2.67 KB, patch)
2013-03-26 17:07 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 17:07:22 UTC
Created attachment 133093 [details]
Proposed changes

The current HintTest.run() method runs the whole hint class, which is useful if the class contains alternative triggers for the same hint.

It's not that useful if a class contains a number of small hints; it may be difficult to provide a test data, which trigger exactly just the tested hint. run(Class hintClazz, String hintId) could solve that issue, running just hint(s) whose metadata id matches the argument.

See the attached diff for proposed changes.
Comment 1 Svata Dedic 2013-04-03 22:09:38 UTC
Implemented in http://hg.netbeans.org/jet-main/rev/68f9c98c8bc4