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

  • From: "Corbett, James" <James.Corbett@xxxxxxxxxxxxx>
  • To: "'program-java@xxxxxxxxxxxxx'" <program-java@xxxxxxxxxxxxx>
  • Date: Fri, 4 Dec 2009 12:27:43 -0500

Suzy:

Once you become comfortably numb with the program, you can actually go to the 
view you want by using it's key stroke. ...for example the project explorer in 
the J2E perspective is alt + W + V + P + P + enter.... I know that it seems a 
long way around but once you have it in your head its rather faster then 
toggling through each view.

Jim

-----Original Message-----
From: program-java-bounce@xxxxxxxxxxxxx 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Stanzel, Susan - Kansas 
City, MO
Sent: December 4, 2009 11:53
To: 'program-java@xxxxxxxxxxxxx'
Subject: [program-java] Re: Eclipse: Tip #4

Hi Jim,

I am just getting started with eclipse. I did figure out that I can hold down 
the control and tap the F6, 7, or 8 and cycle through everything. At first I 
thought it was like control F4, not needing other taps of F4. Is this a tip or 
am I just learning more. I am reading the eclipse cookbook from BookShare.

Susie Stanzel

-----Original Message-----
From: program-java-bounce@xxxxxxxxxxxxx 
[mailto:program-java-bounce@xxxxxxxxxxxxx] On Behalf Of Corbett, James
Sent: Friday, December 04, 2009 8: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: