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 22891 - [IMT] order/reorder import statements
Summary: [IMT] order/reorder import statements
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 31274 (view as bug list)
Depends on:
Blocks: 47599
  Show dependency tree
 
Reported: 2002-04-27 01:28 UTC by Rich Yumul
Modified: 2013-12-18 22:11 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Patch for always sorting fast import list. (959 bytes, patch)
2004-07-12 11:02 UTC, normann
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rich Yumul 2002-04-27 01:28:01 UTC
It would be nice if the java editor had the
ability to order and/or reorder the import
statements.  Eclipse has this feature.  It's
pretty nice.  You could have the ability on sort
order (ie, java.*, javax.*, org.*, or reverse) and
then by alphabetical.

I envision this perhaps being a configurable
option under the import tool, as well as an
available menu item in the java editor's context
menu's 'Tools' submenu.
Comment 1 Jan Lahoda 2002-04-30 01:07:50 UTC
So,
   such a feature should be done in the java module. Maybe this can be
done by import managment tool?
Comment 2 Svata Dedic 2002-04-30 07:20:35 UTC
AFAIK, import statement ordering is implemented in the dev trunk for
both Import management tool and FastImported import statements.
Comment 3 Marek Grummich 2002-07-22 10:09:33 UTC
Set target milestone to TBD
Comment 4 normann 2004-07-12 11:01:54 UTC
For people that can't wait for 4.0, here's a patch for Netbeans 3.6
that will always sort the Fast Import list alphabetically. Before, it
was only sorted when "Import package" was chosen.
Comment 5 normann 2004-07-12 11:02:31 UTC
Created attachment 16191 [details]
Patch for always sorting fast import list.
Comment 6 normann 2004-07-12 11:02:46 UTC
*** Issue 31274 has been marked as a duplicate of this issue. ***
Comment 7 markiewb 2013-12-18 22:10:57 UTC
At least in 7.4 at Options|Editor|Java|Imports|Import Layout the ordering of imports can be configured.

So resolve as worksforme.