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 87930 - Organize Imports does not work in 6.0
Summary: Organize Imports does not work in 6.0
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker with 2 votes (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks: 47599
  Show dependency tree
 
Reported: 2006-10-25 08:53 UTC by Martin Krauskopf
Modified: 2011-10-19 15:30 UTC (History)
2 users (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 Martin Krauskopf 2006-10-25 08:53:59 UTC
;) Yup, with retouche.
Comment 1 Martin Krauskopf 2006-10-25 08:55:47 UTC
Forgot to assign to Tim. Reassigning.
Comment 2 Jesse Glick 2006-10-25 18:41:26 UTC
One of the 20 or so modules in my userdir which I had to disable when first
starting a Retouche build. :-\

Shouldn't this functionality just be folded into the standard Java editor
anyway? IMHO it is a pretty basic Java editing task to sort your imports and
remove wildcards; it's the first thing I would do after taking ownership of some
old code with a messy import list.
Comment 3 _ tboudreau 2006-10-26 00:14:04 UTC
No surprise there.  Agree 100%, this should be part of the Java module - I only
wrote this as a stop-gap until Retouche (so I hope someone has it on their list
of things to do).

It could be an interesting exercise for learning the APIs, to adapt this module,
FWIW.
Comment 4 zeljkot 2008-04-24 09:39:39 UTC
Could be related to 47599
Comment 5 _ tboudreau 2008-06-09 17:48:50 UTC
Passing to Java editor.  The missing functionality in fix imports that ImportCruncher had is to sort imports alphabetically and optionally put blank lines 
between major package changes in the list.
Comment 6 Jesse Glick 2008-06-10 00:17:14 UTC
...and to replace package (glob) imports with specific class imports.
Comment 7 Jesse Glick 2011-10-19 15:30:45 UTC
Obsolete with new built-in functionality, and a third-party module which works in current dev builds.