[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Content assist does not show member fields and types in other packages

On 2/20/2009 12:31 PM, Christoph Wienands wrote:
Hey guys,

after working with VS for many years I recently switched over to
Eclipse, so please excuse me if I'm asking naive questions ;-)

I'm working with Eclipse 3.4.1, which I downloaded in form of the
Ganymede package. So my problem is that the 'content assist' feature
does not properly work in my project's workspace. Here is a list of
issues I'm seeing:

-More often than not, CA does not show field variables when I hit
CTRL-Space. However, with some classes it works (though I haven't found
the pattern yet).

-When I type in the name of a class defined as source code in another
package within the same workspace, the 'quick fix' popup does not list
these types. Types from java.* (like ArrayList) do show up.

-After defining a variable whose type is one of my classes in source
code, when I type the . none of the methods that I defined show up, only
the methods inherited from Object or whatever class my own class inherits.

So it seems to me, either something is screwed up with that content
assist or I have configured something improperly?

Anybody any idea?

This sounds like perhaps you have not created your project as a Java project, or that the source locations are not defined correctly in the project's properties (Java Build Path section).
Does your project have a Java Build Path section of its properties, and are the source directories all listed on the Source tab of that section?
Another clue: if you use the Open Type dialog (Ctrl+Shift+T in the Java or Java Browsing perspectives) can you type in and locate the classes you are failing to get content-assist for?


Eric