How does that work with distinguishing JUnit 3 and JUnit 4? Anyway, in IntelliJ, once you've imported at least one thing statically from a class, then you can easily import anything from the same class using tab completion. That's how I normally do it.
On 17 May 2014 19:28, Bruce Brouwer <bruce.brou...@gmail.com> wrote: > My preference has always been to never use wildcard imports, not even for > static imports. As for getting around the pain of JUnit static imports, I > know in Eclipse you can set favorites for imports. > > Window -> Preferences -> Java -> Editor -> Content Assist -> Favorites > > My settings are > > junit.framework.Assert.* > org.easymock.EasyMock.* > > With this, you can use auto-complete for all the JUnit assertions without > having previously imported them at all. > > I've occasionally had minor inconvenience with importing methods and the > IDE being confused about which static import to use. I'll admit it was > minor, but I'd rather not have any ambiguity. > > > > On Fri, May 16, 2014 at 7:41 PM, Paul Benedict <pbened...@apache.org>wrote: > >> Why would you have to manually fiddle with anything after setting the >> import order in Eclipse? >> On May 16, 2014 5:29 PM, "Gary Gregory" <garydgreg...@gmail.com> wrote: >> >>> I import most general (java, javax) to most specific (com) with org in >>> between. I think this is the eclipse default. >>> >>> I want guidelines that eclipse can sort automatically. This way there >>> is no time wasting with manual fiddling. >>> >>> Gary >>> >>> >>> -------- Original message -------- >>> From: Paul Benedict >>> Date:05/16/2014 15:12 (GMT-05:00) >>> To: Log4J Developers List >>> Subject: Re: [proposal] import guidelines >>> >>> I'd like to throw out something I've grown fond of, which is making >>> one's home project the top import priority. For you guys, it would be >>> "org.apache.logging.log4j". What I like so much about this choice is that >>> it makes eye-balling the use of your own classes very apparent. >>> >>> Paul >>> >>> >>> Cheers, >>> Paul >>> >>> >>> On Thu, May 15, 2014 at 12:44 PM, Gary Gregory >>> <garydgreg...@gmail.com>wrote: >>> >>>> I propose we use the following guidelines for import statements: >>>> >>>> >>>> https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk/src/ide/eclipse/4.3.2/organize-imports.importorder >>>> >>>> which in Eclipse looks like this: >>>> >>>> https://i.imgur.com/04C84XY.png >>>> >>>> Note that default settings are not reflected in the .importorder file. >>>> >>>> Gary >>>> >>>> -- >>>> E-Mail: garydgreg...@gmail.com | ggreg...@apache.org >>>> Java Persistence with Hibernate, Second >>>> Edition<http://www.manning.com/bauer3/> >>>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/> >>>> Spring Batch in Action <http://www.manning.com/templier/> >>>> Blog: http://garygregory.wordpress.com >>>> Home: http://garygregory.com/ >>>> Tweet! http://twitter.com/GaryGregory >>>> >>> >>> > > > -- > > > Bruce Brouwer > about.me/bruce.brouwer > [image: Bruce Brouwer on about.me] > <http://about.me/bruce.brouwer> > -- Matt Sicker <boa...@gmail.com>