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 209038

Summary: Review of a supporting class providing frequencies of type or package usages in the source root
Product: java Reporter: Tomas Zezula <tzezula>
Component: SourceAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: normal CC: dbalek
Priority: P3 Keywords: API, API_REVIEW_FAST
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: TASK Exception Reporter:
Attachments: Diff file
Diff file, fixed issue number

Description Tomas Zezula 2012-03-01 11:38:03 UTC
Created attachment 116231 [details]
Diff file

Use case: Editor features like code completion should order classes with the same simple name according to frequencies they are used in the project. For example in the JavaFX project the JavaFX Button should be preferred to AWT Button.

To implement this feature the java/editor needs a support from the infrastructure to obtain estimates of type (package) references frequencies. The ReferencesCount class was added not support package. This class provides number of classes that are using given type (package).
Comment 1 Tomas Zezula 2012-03-01 11:40:00 UTC
Created attachment 116232 [details]
Diff file, fixed issue number
Comment 2 Tomas Zezula 2012-03-01 11:41:52 UTC
Test will be added in parallel to api review.
Comment 3 Dusan Balek 2012-03-01 16:08:55 UTC
The attached patch looks OK.
Comment 4 Tomas Zezula 2012-03-13 09:10:37 UTC
Fixed jet-main 899ba5c41d77
Comment 5 Quality Engineering 2012-03-15 12:30:28 UTC
Integrated into 'main-golden', will be available in build *201203150400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/899ba5c41d77
User: Tomas Zezula <tzezula@netbeans.org>
Log: #209038:Review of a supporting class providing frequencies of type or package usages in the source root