[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: Code completion not finding my classes
|
Just type the qualified name, and then invokve code assist. It will
automatically add the import for you (this is a preference). If you have
not imported the type, then the qualified name may be ambiguous (e.g. "Date"
might be the "java.sql" one or the "java.util" one.. unless you have one of
them imported, it can't tell the difference). You can verify where Eclipse
is finding types by opening the Open Type dialog (Ctrl-Shift-T). It will
show you all matches for a qualified type name and where it found it (at the
bottom). In short, I think your problem may be imports (since you mentioned
typing a package name). Also, you can try "organize imports
(Ctrl-Shift-O)"...
-Andrew
"J. B. Rainsberger" <jbr@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:alstre$243$1@xxxxxxxxxxxxxxxx
> Everyone:
>
> I'll search the archives after I've posted this message, but perhaps
someone
> can help me equally quickly. :)
>
> I have just started using Eclipse 2.0 and have imported a project I've
been
> working on. The project has multiple source folders (production, unit
test,
> performance, customer test).
>
> The general problem is that the code completer does not find my classes.
> When I try hit Ctrl+Space after the name of a package containing my code,
> Eclipse does not present me with a type list. When I try "Go to type",
there
> are two, identical "qualifiers" and I get the error message "Could not
> uniquely map the type name to a type", even though there is only one type
> with that name.
>
> Can anyone tell me how I might fix this? I would like to avoid moving all
my
> source into one folder, because I'd like to easily be able to run my
> different kinds of tests separately. Building them separately was the
> simplest thing I could think of to achieve that.
>
> Thanks for your help.
>
> J. B. Rainsberger
>
>
>