[program-java] Re: Eclipse: Tip #4

  • From: Anna Giller <anna.giller@xxxxxxxxxxxxxxx>
  • To: program-java@xxxxxxxxxxxxx
  • Date: Fri, 04 Dec 2009 09:40:07 -0500

Hi Jim!

 

I don?t use this keystroke but by some means Eclipse automatically puts
imports for me. 

It puts a separate import for each refered class.

The problem is that when there are too many imports from the same package, I
want to combine them into a single import using *. 

Eclipse completely ignores what I do, and again puts a separate import for
each refered class.

Do you know how to fix it?

 

Thank you,

Anna

 

  _____  

From: program-java-bounce@xxxxxxxxxxxxx
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James
Sent: Friday, December 04, 2009 8:31 AM
To: 'program-java@xxxxxxxxxxxxx'
Subject: [program-java] Eclipse: Tip #4

 

Eclipse: Tip #4 Dec 04, 2009

 

?did you know that while editing a class, if you make a reference to lets
say another class with in a method or class body you can add the necessary
imports by simply using ctrl + shift + the letter o?. Eclipse is intelligent
enough to know what imports are required to satisfy the compiler?.

 

J.

 

 

 

James M. Corbett

 

A - Technical Specialist

GST/HST Micros | Micros de la TPS/TVH

Business Suite Assessing Systems (BSAS)

Revenue and Accounting Systems Directorate (RASD) | Direction des Systèmes
de revenu et de comptabilité (DSRC)

Information Technology Branch (ITB) | Direction générale de l'informatique
(DGI)

Canada Revenue Agency | Agence du revenue du Canada

 

(613) 941-1338

 

.FinishProject(.getItDone, .getItRight, { Right Now })

 

DevMicro...

 

 

 

Other related posts: