Skip to main content



      Home
Home » Newcomers » Newcomers » CTRL+Space just gives Object methods
CTRL+Space just gives Object methods [message #255884] Thu, 08 May 2008 14:15 Go to next message
Eclipse UserFriend
Originally posted by: marcelh.huntemann.arcor.de

Hi!

I now have the strange problem that for only some classes in one of my
projects CTRL+Space just offers the Object methods and not the methods and
variables of the class. The strange thing is that this is only for a few
classes although it works for all other classes in the project and also in
the other projects.
Anyone an idea why this is (and yes, the classes have functions or
variables to add via this. They're just not offered and when I type them
in everything is fine and compilable).

Thanks,
Marcel
Re: CTRL+Space just gives Object methods [message #255888 is a reply to message #255884] Thu, 08 May 2008 15:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Marcel Huntemann wrote:
> Hi!
>
> I now have the strange problem that for only some classes in one of my
> projects CTRL+Space just offers the Object methods and not the methods and
> variables of the class. The strange thing is that this is only for a few
> classes although it works for all other classes in the project and also in
> the other projects.
> Anyone an idea why this is (and yes, the classes have functions or
> variables to add via this. They're just not offered and when I type them
> in everything is fine and compilable).

This may sound obvious, but are you sure your trying it on an instance
of the class and not just the class name? You have to be editing with an
instance in order to see instance methods.

For examle:

String someString = "blah";
someString.<Ctrl+Space>

That should show instance and class methods. However,

String someString = String.<Ctrl+Space>

will only show class methods.

Hope this helps,
Eric
Re: CTRL+Space just gives Object methods [message #255890 is a reply to message #255884] Thu, 08 May 2008 15:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: groups.pellaton.li

Hi

It could be that the configuration of the content assistant is messed
up.
- Select Window > Preferences
- Browse to Java > Editor > Content Assist > Advanced
- Make sure all items you want to come up as content assistant proposals
are checked

HTH

Michael Pellaton
PS: after installing 3.4.M7 these settings were messed up on my pc too
Re: CTRL+Space just gives Object methods [message #255892 is a reply to message #255888] Thu, 08 May 2008 18:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marcelh.huntemann.arcor.de

Eric Rizzo wrote:
> This may sound obvious, but are you sure your trying it on an instance
> of the class and not just the class name? You have to be editing with an
> instance in order to see instance methods.
Yes, I am sure.
If I write this. and then press <CTRL+Space> it should show me the
variables and the methods of this class, right!? What it does for all the
other classes, but just not for a few classes in the project!

Thanks,
Marcel
Re: CTRL+Space just gives Object methods [message #255893 is a reply to message #255890] Thu, 08 May 2008 18:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marcelh.huntemann.arcor.de

Hi Michael!

Michael Pellaton wrote:
> It could be that the configuration of the content assistant is messed
> up.
> - Select Window > Preferences
> - Browse to Java > Editor > Content Assist > Advanced
> - Make sure all items you want to come up as content assistant proposals
> are checked
No, there is still everything checked that I want to have checked and I
guess, if it wouldn't be checked it wouldn't work for all classes. The
problem is that it strangely doesn't work for maybe just 4-5 classes, but
for the remaining maybe 15 classes it works fine.

Thanks,
Marcel
Re: CTRL+Space just gives Object methods [message #255968 is a reply to message #255892] Fri, 09 May 2008 10:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Marcel Huntemann wrote:
> Eric Rizzo wrote:
>> This may sound obvious, but are you sure your trying it on an instance
>> of the class and not just the class name? You have to be editing with an
>> instance in order to see instance methods.
> Yes, I am sure.
> If I write this. and then press <CTRL+Space> it should show me the
> variables and the methods of this class, right!? What it does for all the
> other classes, but just not for a few classes in the project!

That suggest a problem in the project configuration, for example if some
of the classes are not compiling or not correctly on the build path or
something like that.

Eric
Re: CTRL+Space just gives Object methods [message #256005 is a reply to message #255968] Fri, 09 May 2008 15:05 Go to previous message
Eclipse UserFriend
Originally posted by: marcelh.huntemann.arcor.de

Eric Rizzo wrote:
> That suggest a problem in the project configuration, for example if some
> of the classes are not compiling or not correctly on the build path or
> something like that.
The program is compiling and running perfectly (actually it's just
running). Just when I go into the code to maybe test something new, I just
get Object options for this. and instance. for instances in some of the
classes...

Marcel
Previous Topic:error while debugging
Next Topic:can't run application
Goto Forum:
  


Current Time: Thu May 08 15:24:25 EDT 2025

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

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

Back to the top