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

Summary: Allow to execute just a specific hint from a Hint class
Product: java Reporter: Svata Dedic <sdedic>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: RESOLVED FIXED    
Severity: normal CC: jlahoda
Priority: P2 Keywords: API, API_REVIEW_FAST
Version: 7.4   
Hardware: PC   
OS: Linux   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Proposed changes

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