Hi Erb.

This presupposes that the imports were in the correct (alphabetical) order
in the first place, which in many cases will not be true.  Given:

import java.util.Collection;
import java.util.List;
import java.util.ArrayList;

where should IDEA put the import for java.util.Iterator?  I think it makes
sense for it to always be added at the bottom of its respective "block", and
then ordered alphabetically when you optimize the imports.

Just my $0.02.

Cheers,
Dan

> -----Original Message-----
> From: Erb [mailto:[EMAIL PROTECTED]]
> Sent: 18 December 2001 17:14
> To: [EMAIL PROTECTED]
> Subject: Re: [Eap-list] Import ordering broken?
> 
> 
> OK, I found one scenario (using enclosed style), thopugh I think this 
> does not have to
> do with the style, as you will see.
> 
> Create a new class, type a line that includes "JLabel", and 
> alt-enter to 
> add the import.
> Then type a line using "JDialog", and include that import.  It is 
> included below the JLabel import.
> But Optimize Imports then alphabetizes them.  I'll have to 
> see if I can 
> find another case
> other than alphabetical order.
> 
> 
> Valentin Kipiatkov wrote:
> 
> > I checked this and could not reproduce it. Could you please 
> provide some way
> > to reproduce this? For example, send your code.style.xml 
> settings and a
> > small example when the imports are inserted in a wrong order.
> > 
> > Best regards,
> > Valentin Kipiatkov
> > -----------------------------------------------------------
> >  IntelliJ Software, http://www.intellij.com/
> >  "Develop with pleasure"
> > -----------------------------------------------------------
> > 
> > ----- Original Message -----
> > From: "Erb" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, December 14, 2001 7:01 PM
> > Subject: Re: [Eap-list] Import ordering broken?
> > 
> > 
> > 
> >>I have also noticed that the import rules are not respected 
> when IDEA
> >>auto-creates
> >>an import statement.  I have often run Optimize Imports, 
> then added some
> >>code
> >>that caused imports to be inserted, then did Optimize 
> Imports again, and
> >>
> > the
> > 
> >>imports changed their ordering.  Perhaps Ariadna release 
> could address
> >>
> > this.
> > 
> >>Marc Palmer wrote:
> >>
> >>
> >>>2.5 build #535
> >>>
> >>>My imports don't seem to be obeying the import ordering 
> rules set out in
> >>>IDE Options. The default settings too... Any others, java, 
> javax... I
> >>>
> > had
> > 
> >>>a list like this:
> >>>
> >>>import org....
> >>>import org....
> >>>import org....
> >>>
> >>>import java.
> >>>
> >>>import px....
> >>>
> >>>...and a reformat / save did not fix it. I changed the 
> options in the
> >>>
> > IDE
> > 
> >>>to use java, javax, then any others, and still no change 
> after reformat
> >>>
> > /
> > 
> >>>save.
> >>>
> >>>Am I missing something?
> >>>
> >>>Cheers
> >>>
> >>>
> >>>
> >>>_______________________________________________
> >>>Eap-list mailing list
> >>>[EMAIL PROTECTED]
> >>>http://www.intellij.com/mailman/listinfo/eap-list
> >>>
> >>>
> >>>
> >>
> >>--
> >>
> >>Erb
> >>
> >>==============================================================
> >>"The only time I like in the morning is afternoon."
> >>     - Russell D. Cooper
> >>
> >>"If you do everything, then you're all done."
> >>     - Melissa F. Cooper
> >>
> >>"Most of you are familiar with the virtues of a programmer.
> >>There are three, of course: laziness, impatience, and hubris."
> >>     - Larry Wall
> >>==============================================================
> >>
> >>
> >>_______________________________________________
> >>Eap-list mailing list
> >>[EMAIL PROTECTED]
> >>http://www.intellij.com/mailman/listinfo/eap-list
> >>
> > 
> > 
> > _______________________________________________
> > Eap-list mailing list
> > [EMAIL PROTECTED]
> > http://www.intellij.com/mailman/listinfo/eap-list
> > 
> > 
> 
> 
> -- 
> 
> Erb
> 
> ==============================================================
> "The only time I like in the morning is afternoon."
>      - Russell D. Cooper
> 
> "If you do everything, then you're all done."
>      - Melissa F. Cooper
> 
> "Most of you are familiar with the virtues of a programmer.
> There are three, of course: laziness, impatience, and hubris."
>      - Larry Wall
> ==============================================================
> 


***************************************************************************************
This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. 
If you have received this email in error please notify [EMAIL PROTECTED] 
immediately.

This footnote also confirms that this email message has been swept for the 
presence of computer viruses.
***************************************************************************************

_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to