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 23886 - [IMT] Import Management RFE: single threshold for the entire file
Summary: [IMT] Import Management RFE: single threshold for the entire file
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-23 10:40 UTC by eadams
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description eadams 2002-05-23 10:40:06 UTC
To me, the Import Management tools gives more information I want.
I would like to see a simple threshold that applies to the entire file,
seeing the information for each import is just too much.

I would like to see something like:

              [] Never use fully-qualified names
 	[] Use fully-qualified names when they occur less than 
		[xxxx] times
Comment 1 Svata Dedic 2002-05-23 19:43:48 UTC
Each symbol's usage count is compared to a single threshold value
(regardless whether the symbol is referenced by it's simple or
qualified name). That's how the IMT actually works.

The threshold controls (exact meaning) "how many names denoting symbol
X must be present in the file to suggest an import statement for the
type". Each symbol's usage is counted and, if the particular symbol's
usage exceeds the threshold, the IMT will suggest to create an import.
I wonder what led you to a conclusion that you have to maintain
thresholds for each import - did you see an array of properties
somewhere, or a treetable for individual symbols, perhaps ?
Comment 2 eadams 2002-05-24 07:09:13 UTC
Clearly, I was wrong about there being a separate threshold
for each import.  Here are the things on Step 2 that led me
astray:

1) Each import is listed, I have explicit control over the action
   for each import and all the columns are controls (even though 
   I can't figure out what the controls in the Frequency and Final
   FQN Freq. columns do, issue 23895).

2) There is no mention that the global threshold is 4 and I found
   no place to control it and the visual indicators are that 
   imports are being managed individually.

3) I assumed that the terms Maximum Frequency and Final FQN Freq.
   where the same, issue 23897, but it now appears that Maximum
   Frequency is referring to 4.  How does a user know this?  How
   does a user change the Maximum Frequency?
   
Comment 3 Svata Dedic 2002-05-24 07:12:59 UTC
Look to Tools - Options - Editing - Java Sources - Import management.
You may also want to invoke Help page; IMT and its settings are
documented in the User's Guide.
There's a pending patch to make the settings available right from the
IMT's dialog interface.
Comment 4 eadams 2002-05-24 07:37:54 UTC
Thanks.  I had looked in Options but I went to the Java Module
rather than into Editing.  I often have trouble finding things
in Options, but that's a different topic.

I tried Help from Step 2, but it brings ups the dialog saying

    Parsing help sets ...
    Merging help sets ...

and the help viewer is never shown.

I'm using a May 07 build and haven't filed this JavaHelp bug.
I'll go do so now.
Comment 5 Marek Grummich 2002-07-22 10:49:23 UTC
Set target milestone to TBD
Comment 6 Martin Matula 2004-11-12 10:10:33 UTC
IMT was removed and replaced by FixAllImports which has no UI.