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

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

Jim, thanks!

Anna

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

Anna:

Sorry, don't know how to resolve this one.... However, the recommended
standard is to implicitly import the required files. ...for example if you
import:

Import java.utils.*:

...the human readability factor goes down. Essentially really knows what sub
features of this jar you are using with out reading every line of code.

J.


-----Original Message-----
From: program-java-bounce@xxxxxxxxxxxxx
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Anna Giller
Sent: December 4, 2009 09:40
To: program-java@xxxxxxxxxxxxx
Subject: [program-java] Re: Eclipse: Tip #4

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: