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.
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
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 ?
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?
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.
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.
Set target milestone to TBD
IMT was removed and replaced by FixAllImports which has no UI.