Is there any Code Auto-Fill?? [message #117347] |
Sun, 13 November 2005 04:06  |
Eclipse User |
|
|
|
Originally posted by: matkins.NOSPAMsoftlinksys.com
Hi:
I'm real new to Eclipse and have been studying my arse off.
I'm doing some SWT tutorials now and so far I'm finding that Eclipse
expects me to memorize (or look up) all possible arguments for
everything.
I'm used to C#.NET.
If I'm in the IDE and I type for example:
Display display = new
When I hit that last space a list of possibles comes up with (would be)
Display() selected.
Given that I had my Imports correct (using in C#) if I typed:
Composite parent = new Composite(
I would get an annotation of what the possible arguments would be.
If more than one constructor (or method) existed little arrows would
allow me to scroll up and down for the choices.
So I write:
Composite parent = new Composite(shell, SWT.
Again, when I typed the last period, a list of possibles would come up
which I could select from.
In Eclipse 3.1.1 I've got code assist checked in my preferences but I'm
not getting much assistance.
So far, it seems to expect me to have the whole Java/SWT/JFace language,
libraries, parameters, constants, etc. memorized. It's not helping.
Is there any way to make it do this?
If not, how do you guys do it? Surely you don't have to constantly go
look everything up . . .
|
|
|
Re: Is there any Code Auto-Fill?? [message #117362 is a reply to message #117347] |
Sun, 13 November 2005 04:18   |
Eclipse User |
|
|
|
Originally posted by: matkins.NOSPAMsoftlinksys.com
MAtkins <matkins@NOSPAMsoftlinksys.com> wrote in
news:Xns970D2A6FBDD7Amatkins@206.191.52.34:
I see, CTRL Space helps. It also helps to have my Imports in place.
Not too bad, I'm impressed . . .
> Hi:
>
> I'm real new to Eclipse and have been studying my arse off.
>
> I'm doing some SWT tutorials now and so far I'm finding that Eclipse
> expects me to memorize (or look up) all possible arguments for
> everything.
>
> I'm used to C#.NET.
>
> If I'm in the IDE and I type for example:
> Display display = new
>
> When I hit that last space a list of possibles comes up with (would be)
> Display() selected.
>
> Given that I had my Imports correct (using in C#) if I typed:
>
> Composite parent = new Composite(
> I would get an annotation of what the possible arguments would be.
> If more than one constructor (or method) existed little arrows would
> allow me to scroll up and down for the choices.
> So I write:
>
> Composite parent = new Composite(shell, SWT.
> Again, when I typed the last period, a list of possibles would come up
> which I could select from.
>
> In Eclipse 3.1.1 I've got code assist checked in my preferences but I'm
> not getting much assistance.
>
> So far, it seems to expect me to have the whole Java/SWT/JFace
language,
> libraries, parameters, constants, etc. memorized. It's not helping.
>
> Is there any way to make it do this?
> If not, how do you guys do it? Surely you don't have to constantly go
> look everything up . . .
>
>
|
|
|
|
Re: Is there any Code Auto-Fill?? [message #117577 is a reply to message #117362] |
Mon, 14 November 2005 10:08  |
Eclipse User |
|
|
|
Originally posted by: wegener.cboenospam.com
MAtkins wrote:
snip...
>>
>> Composite parent = new Composite(
>> I would get an annotation of what the possible arguments would be.
>> If more than one constructor (or method) existed little arrows would
>> allow me to scroll up and down for the choices.
If you hit Ctrl-Space while typing the first Composite on the above line,
code assist will pop up Composite. If you select it, the import will be
automatically added for you. That way when you get to the second
Composite, the appropriate constructors will be displayed.
There is also a new code template. Type new on a line by itself, hit
Ctrl-Space and select Create New Object from the popup list. You can tab
between the type, the variable name and the constructor arguments.
|
|
|
Powered by
FUDForum. Page generated in 0.08271 seconds