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 - Review of a supporting class providing frequencies of type or package usages in the source root
Summary: Review of a supporting class providing frequencies of type or package usages ...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: API, API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2012-03-01 11:38 UTC by Tomas Zezula
Modified: 2012-03-15 12:30 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
Diff file (20.27 KB, application/octet-stream)
2012-03-01 11:38 UTC, Tomas Zezula
Details
Diff file, fixed issue number (20.28 KB, patch)
2012-03-01 11:40 UTC, Tomas Zezula
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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