Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » canned code completion
canned code completion [message #15023] Tue, 06 May 2003 08:45 Go to next message
Eclipse UserFriend
Originally posted by: mark_lybarger.NOSPAM.yahoo.com

i can't seem to get the canned code completion to work. for instance, i
want to use a iterator loop, but when i type "for" or "while" then
ctrl+space nothing comes up. i'm using eclipse 2.1 on Win2k

code completion for my class methods and properties is working fine, just
not the things under Window -> Preferences -> Java -> Editor ->
Templates. all the items in that area are enabled, and i've tried restore
defaults.

would a fresh unzip of the eclipse SDK help this out? I don't want to
loose my project settings or plugins though if at all possible.
Re: canned code completion [message #15878 is a reply to message #15023] Tue, 06 May 2003 17:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: genadyb.inter.net.il

Make sure you don't have a space after the "for"

Genady

Mark wrote:
> i can't seem to get the canned code completion to work. for instance, i
> want to use a iterator loop, but when i type "for" or "while" then
> ctrl+space nothing comes up. i'm using eclipse 2.1 on Win2k
>
> code completion for my class methods and properties is working fine, just
> not the things under Window -> Preferences -> Java -> Editor ->
> Templates. all the items in that area are enabled, and i've tried restore
> defaults.
>
> would a fresh unzip of the eclipse SDK help this out? I don't want to
> loose my project settings or plugins though if at all possible.
>
Re: canned code completion [message #16560 is a reply to message #15878] Wed, 07 May 2003 09:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Mark_Lybarger.NOSPAMyahoo.com

i checked and i don't have a space after the for (or while). i tried this
on my linux box last night and it was working fine. here on my win2k
workbox it's not working. these templates are really usefull, i'd love to
get them to work.

i tried re-extracting the eclipse zip file over my existing eclipse
installation, and that didn't help. i tried unzipping basically a new
install, and that seemed to resolve the issue. had to import my project,
and resetup all my plugins/vss info, etc.

Genady wrote:

> Make sure you don't have a space after the "for"

> Genady

> Mark wrote:
> > i can't seem to get the canned code completion to work. for instance, i
> > want to use a iterator loop, but when i type "for" or "while" then
> > ctrl+space nothing comes up. i'm using eclipse 2.1 on Win2k
> >
> > code completion for my class methods and properties is working fine, just
> > not the things under Window -> Preferences -> Java -> Editor ->
> > Templates. all the items in that area are enabled, and i've tried restore
> > defaults.
> >
> > would a fresh unzip of the eclipse SDK help this out? I don't want to
> > loose my project settings or plugins though if at all possible.
> >
Re: canned code completion [message #16577 is a reply to message #15023] Wed, 07 May 2003 09:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Mark wrote:

>i can't seem to get the canned code completion to work. for instance, i
>want to use a iterator loop, but when i type "for" or "while" then
>ctrl+space nothing comes up. i'm using eclipse 2.1 on Win2k
>
>code completion for my class methods and properties is working fine, just
>not the things under Window -> Preferences -> Java -> Editor ->
>Templates. all the items in that area are enabled, and i've tried restore
>defaults.
>
>
>
Check the following
- are you in the Java editor
- are normal code completions available when you press Ctrl+SPACE?
- is there anything in .log?

Dani
Re: canned code completion [message #18254 is a reply to message #16577] Fri, 09 May 2003 09:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark_lybarger.NOSPAMyahoo.com

Daniel Megert wrote:

> Mark wrote:

> >i can't seem to get the canned code completion to work. for instance, i
> >want to use a iterator loop, but when i type "for" or "while" then
> >ctrl+space nothing comes up. i'm using eclipse 2.1 on Win2k
> >
> >code completion for my class methods and properties is working fine, just
> >not the things under Window -> Preferences -> Java -> Editor ->
> >Templates. all the items in that area are enabled, and i've tried restore
> >defaults.
> >
> >
> >
> Check the following
> - are you in the Java editor
> - are normal code completions available when you press Ctrl+SPACE?
> - is there anything in .log?

> Dani

my new install that was working, now isn't quite... strange. possibly
after installing plugins?. to answer your questions/checks:
- yes
- no
- no (i don't seem to have a log file, where would this be?)

i get normal code completions when i press the ., then method names come
up. i can't seem to find where the ctrl+space is specified. i have 3 main
plugins, XMen XML editor, Veloedit (velocity templates), and vss. i don't
know if those might be reponsible for any of this. i can use the
Edit->Content Assist, and a pop-up will come up with the template code for
my context (for/while, etc).
Re: canned code completion [message #18287 is a reply to message #18254] Fri, 09 May 2003 09:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

mark wrote:

>my new install that was working, now isn't quite... strange. possibly
>after installing plugins?.
>
Check the key bindings (Window > Preferences > Workbench > Keys - on the
page select Edit > Content Assist)

Dani
Re: canned code completion [message #18339 is a reply to message #18287] Fri, 09 May 2003 09:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mark_lybarger.NOSPAMyahoo.com

Daniel Megert wrote:

> mark wrote:

> >my new install that was working, now isn't quite... strange. possibly
> >after installing plugins?.
> >
> Check the key bindings (Window > Preferences > Workbench > Keys - on the
> page select Edit > Content Assist)

> Dani

thanks, this did it, i had a conflict in the global setting somehow. i
added a text editor setting and a java editor setting and now it works.
Re: canned code completion [message #18356 is a reply to message #18254] Fri, 09 May 2003 10:00 Go to previous message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

mark wrote:

> Daniel Megert wrote:

> > Mark wrote:

> > >i can't seem to get the canned code completion to work. for instance, i
> > >want to use a iterator loop, but when i type "for" or "while" then
> > >ctrl+space nothing comes up. i'm using eclipse 2.1 on Win2k
> > >
> > >code completion for my class methods and properties is working fine, just
> > >not the things under Window -> Preferences -> Java -> Editor ->
> > >Templates. all the items in that area are enabled, and i've tried restore
> > >defaults.
> > >
> > >
> > >
> > Check the following
> > - are you in the Java editor
> > - are normal code completions available when you press Ctrl+SPACE?
> > - is there anything in .log?

> > Dani

> my new install that was working, now isn't quite... strange. possibly
> after installing plugins?. to answer your questions/checks:
> - yes
> - no
> - no (i don't seem to have a log file, where would this be?)

> i get normal code completions when i press the ., then method names come
> up. i can't seem to find where the ctrl+space is specified. i have 3 main
> plugins, XMen XML editor, Veloedit (velocity templates), and vss. i don't
> know if those might be reponsible for any of this. i can use the
> Edit->Content Assist, and a pop-up will come up with the template code for
> my context (for/while, etc).


I recall seeing a number of posts indicating that the XMen plugin was
causing a conflict for ctrl+space in the 2.1 releases.
Previous Topic:Eclipse 2.1 linux/gtk, tasks not updating?
Next Topic:I have tried but JavaEditor example doesn't work:
Goto Forum:
  


Current Time: Mon Jul 14 19:44:44 EDT 2025

Powered by FUDForum. Page generated in 0.28858 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top