eclipse - doing multiple tasks?

A

Alex Hunsley

I've justed started looking at eclipse and it seems very good.
I like the automatically generated tasks like fixing imports. Is it
possible to select a load of these and tell it to do them all, however?
There's a load of imports to be fixed and I don't see the point in
selecting each line and right clicking and hitting "Quick fix" and
selecting "Organise imports" and hitting "OK" for each one... :)

alex
 
M

Michael Borgwardt

Alex said:
I've justed started looking at eclipse and it seems very good.
I like the automatically generated tasks like fixing imports. Is it
possible to select a load of these and tell it to do them all, however?

In general: No, because they cannot necessarily be fixed automatically.
For your specific problem of fixing imports, however, you can select a
whole package/directory in the tree view and select Source->Organize Imports,
and it will process all the classes inside.
 
A

Alex Hunsley

Michael said:
In general: No, because they cannot necessarily be fixed automatically.
For your specific problem of fixing imports, however, you can select a
whole package/directory in the tree view and select Source->Organize
Imports,
and it will process all the classes inside.
Ah thanks for this!
Unfortunately, the organise imports seems to be broken!
There are quite a few files that now look like this:

package [... whatever]

import [...whatever]
import [...whatever]

ng = false;



... and obviously the compiler trips up on the "ng = false;" - eclipse
has removed some chars from the front of this line!
Does anyone know anything about this weird behaviour?

alex
 
A

Alex Hunsley

Alex said:
Michael said:
In general: No, because they cannot necessarily be fixed automatically.
For your specific problem of fixing imports, however, you can select a
whole package/directory in the tree view and select Source->Organize
Imports,
and it will process all the classes inside.
Ah thanks for this!
Unfortunately, the organise imports seems to be broken!
There are quite a few files that now look like this:

package [... whatever]

import [...whatever]
import [...whatever]

ng = false;



.. and obviously the compiler trips up on the "ng = false;" - eclipse
has removed some chars from the front of this line!
Does anyone know anything about this weird behaviour?

alex

extra info: it only seems to break when I do CTRL+SHIFT+0 on a package,
never when I organise imports on a single file.

alex
 
C

Chris Smith

Alex said:
.. and obviously the compiler trips up on the "ng = false;" - eclipse
has removed some chars from the front of this line!
Does anyone know anything about this weird behaviour?

I don't see it anywhere. Perhaps you should come up with a definite set
of steps to reproduce it, and report it at www.eclipse.org under the
"bugs" link in the left margin.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,056
Latest member
GlycogenSupporthealth

Latest Threads

Top