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 222777 - 'Organize imports' hint is disabled by default
Summary: 'Organize imports' hint is disabled by default
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-26 16:52 UTC by ent38
Modified: 2012-11-27 16:08 UTC (History)
1 user (show)

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 ent38 2012-11-26 16:52:42 UTC
Since NetBeans 7.3 Beta2, the 'Organize Imports' Java hint is disabled by default.
It should be automatically enabled on fresh installs.
Comment 1 Jan Lahoda 2012-11-26 17:20:48 UTC
(In reply to comment #0)
> Since NetBeans 7.3 Beta2, the 'Organize Imports' Java hint is disabled by
> default.
> It should be automatically enabled on fresh installs.

I am sorry, but I would like to hear some reasons why it should be enabled by default.

I think the reason to disable it (Dusan, please correct me) is that for many users the warning does not provide enough value for the UI clutter it introduces. In 7.2, IIRC, the organize imports could only be invoked through Inspect&Transform and through the warning in the editor. In 7.3, the imports can also be organized using the main menu action Source/Organize Imports, or by enabling it on save. Both of these make it easier to use the feature when needed, so producing the warning by default is feels as less important.
Comment 2 Dusan Balek 2012-11-26 17:38:16 UTC
This is as designed behavior since the main menu action Source/Organize Imports has been introduced.
Comment 3 ent38 2012-11-27 16:08:50 UTC
It was activated by default in NB 7.2.1, that's why I was a bit confused.
Thank you all for the information!