prevent automatic import-statements [message #93128] |
Mon, 08 September 2003 08:53  |
Eclipse User |
|
|
|
Hello, when I type a unused type in the editor, the codegenerator adds the
required import-statemant automatically. But I don`t want that. I want to
control what and when I import by myself. I think in a previous version of
eclipse a lightbulb with a red sign appeared and when I clicked on it, it
suggest me to import. Thats the way I would prefer it to work. Can I
change it somehow ?
|
|
|
|
|
|
|
Re: prevent automatic import-statements [message #93441 is a reply to message #93230] |
Tue, 09 September 2003 04:32   |
Eclipse User |
|
|
|
Is there any way to, like in IDEA, press eg ALT+ENTER to import the
package instead of getting your mouse, pointing it at the ligh bulb,
clicking, selecting...
thanks
Ronald
Horváth, Csaba wrote:
> Hi,
> The 2.1.1 version of Eclipse does not add the import automatically. It adds
> when you use the content assist to get a completion for a class name. If you
> write the whole class name without using completion the "light-bulb thingy"
> appears and add a quick-fix possibility to import the class.
> Personally: I think the completion *must* import (or use the full name)
> because without that a compiler error occurs in the code (and because I like
> the 'compile on save' functionality it would really hurt and slow me down).
> Also you cannot get any content assist information for that class (and
> variables of that type) until you import it manually.
> HTH,
> Regards,
> Csaba
> "Robert Ludwig" <SCHWERTFISCHTROMBOSE@GMX.DE> wrote in message
> news:bjhuq2$ahc$1@eclipse.org...
> > err, no, when I uncheck that one, eclipse adds the complete qualified name
> > instead of the import statement. But I onkly want to prevent the AUTOMATIC
> > import-statment-gneration. I want to be asked before, wether I want to
> > import or not. Like it was with that light-bulb thingy.
> >
|
|
|
|
Re: prevent automatic import-statements [message #94238 is a reply to message #93128] |
Thu, 11 September 2003 03:58  |
Eclipse User |
|
|
|
Originally posted by: daniel.megert.gmx.net
Robert,.
following your other message you neither want an import nor full
qualification. Can you describe the use case for such a behavior?
Dani
Robert Ludwig wrote:
>Hello, when I type a unused type in the editor, the codegenerator adds the
>required import-statemant automatically. But I don`t want that. I want to
>control what and when I import by myself. I think in a previous version of
>eclipse a lightbulb with a red sign appeared and when I clicked on it, it
>suggest me to import. Thats the way I would prefer it to work. Can I
>change it somehow ?
>
>
Following your other comments you neither want an import nor full
qualification. Can you describe the use case for such a behavior?
Dani
|
|
|
Powered by
FUDForum. Page generated in 0.30118 seconds