eclipse 3.2 auto add import ?

T

timasmith

Hi,

In Eclipse it used to be if I type

java.util.ArrayList

and press enter on the drop down it would add the import

import java.util.ArrayList;

Since upgrading to 3.2 and perhaps not running the exact same JBoss
version it has stopped doing it.

Anyone know how to turn that back on?

thanks

Tim
 
H

Hendrik Maryns

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

(e-mail address removed) schreef:
Nope, still cant find it (but nice tip on searching preferences)

Please do not top-post.

If I do as I suggested you, I get six possibilities. The most obvious
one does not seem to be the right one, but the second most obvious one
hits it on the spot. (i.e. Java -> Editor -> Content Assist)

H.
Hendrik Maryns wrote:
(e-mail address removed) schreef:
Open Windows -> Preferences, type 'import', it should be obvious then.

- --
Hendrik Maryns

==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFEt1vge+7xMGD3itQRAgvqAJ4lCuIMJkeP9ImD1DExwoGO9climQCeKOIO
PQrdW6JM8YSrJeJzlHi7MKo=
=vIUC
-----END PGP SIGNATURE-----
 
T

timasmith

add import instead of qualified name?

already checked

I guess my Eclipse is broken

3.2.0 M20060629-1905

bummer
 
H

Hendrik Maryns

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

(e-mail address removed) schreef:
add import instead of qualified name?

already checked

I guess my Eclipse is broken

3.2.0 M20060629-1905

bummer

Indeed.

H.
- --
Hendrik Maryns

==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFEvL1ie+7xMGD3itQRAu36AJoCB6KMUgskd/T242Rwwuamc33AfACeIP5R
Qj1pZj+eerwwz+FcifO51c8=
=eWiC
-----END PGP SIGNATURE-----
 
Joined
Sep 20, 2006
Messages
7
Reaction score
0
Did you ever figure this out? I just upgraded and experienced the same thing. It appears the trigger for this functionality has changed. If you begin typing a fully qualified name, the assumption in 3.2 is that you want a fully qualified name -- not an import. So to auto-import java.util.ArrayList in 3.2, do not type

java.ut<ENTER> ...

instead, just type

Arr<CTRL><SPACE>

and make your selection there. This approach triggers the auto-import.

If you're like me, you think 'good grief, now I'm going to have to wade through all these auto-complete options to get to what I want.' But thanks to some nifty predictive algorithms, this rarely happens! Bottom line: less typing.
 

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

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top