Skip to main content



      Home
Home » Newcomers » Newcomers » Two projects and function completion
Two projects and function completion [message #14350] Mon, 24 January 2005 06:38 Go to next message
Eclipse UserFriend
Originally posted by: barabucc.cs.unibo.it

I have two projects in my workspace: A (the core library) and B (the
application).

Context help (or "function completion" ?) does not work in project B: the
classes declared in project A are not seen.

I checked A in project B's project references, quit and restarted eclipse
but still the editor does not complete my functions or sees the classes of
A inside B.

Am I missing something?
Re: Two projects and function completion [message #14416 is a reply to message #14350] Mon, 24 January 2005 09:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Gioele Barabucci wrote:

>I have two projects in my workspace: A (the core library) and B (the
>application).
>
>Context help (or "function completion" ?) does not work in project B: the
>classes declared in project A are not seen.
>
>I checked A in project B's project references, quit and restarted eclipse
>but still the editor does not complete my functions or sees the classes of
>A inside B.
>
>Am I missing something?
>
>
>
Did you update the Java Build path of project B to include A?

Dani
Re: Two projects and function completion [message #14445 is a reply to message #14416] Mon, 24 January 2005 09:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: barabucc.cs.unibo.it

Daniel Megert wrote:
> Gioele Barabucci wrote:
>>I checked A in project B's project references, quit and restarted eclipse
>>but still the editor does not complete my functions or sees the classes of
>>A inside B.
>
> Did you update the Java Build path of project B to include A?
Yes, I think so.
Under "B properties -> Java Build Path" I checked both "Projects" and "Order
and Export".

But still it does not work.

In addition, when I run the Application, the App.main() method fails because
it can't find any class that are defined in the library.
Re: Two projects and function completion [message #14535 is a reply to message #14445] Mon, 24 January 2005 10:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Gioele Barabucci wrote:

>Daniel Megert wrote:
>
>
>>Gioele Barabucci wrote:
>>
>>
>>>I checked A in project B's project references, quit and restarted eclipse
>>>but still the editor does not complete my functions or sees the classes of
>>>A inside B.
>>>
>>>
>>Did you update the Java Build path of project B to include A?
>>
>>
>Yes, I think so.
>Under "B properties -> Java Build Path" I checked both "Projects" and "Order
>and Export".
>
>But still it does not work.
>
>
OK - then may be you did not export the code from project A (Order and
Export page)?

Dani

>In addition, when I run the Application, the App.main() method fails because
>it can't find any class that are defined in the library.
>
>
>
Re: Two projects and function completion [message #14565 is a reply to message #14350] Mon, 24 January 2005 11:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: barabucc.cs.unibo.it

Gioele Barabucci wrote:
> Context help (or "function completion" ?) does not work in project B: the
> classes declared in project A are not seen.
Here is project B .classpath and .project (A = Core, B = Standalone)

..classpath
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry exported="true" kind="src" path="/Core"/>
<classpathentry kind="src" path="Sources"/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="Objects"/>
</classpath>

..project
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Standalone</name>
<comment></comment>
<projects>
<project>Core</project>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments></arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

The help suggests to create a fake source directory in B and link it to the
project A. I really don't like this solution.
Re: Two projects and function completion [message #14620 is a reply to message #14535] Mon, 24 January 2005 11:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: barabucc.cs.unibo.it

Daniel Megert wrote:
> OK - then may be you did not export the code from project A (Order and
> Export page)?
Yes, project A was not exporting itself.
Thanks for the help.

The eclipse help does not mention this. It should...
Re: Two projects and function completion [message #16064 is a reply to message #14620] Tue, 25 January 2005 10:29 Go to previous message
Eclipse UserFriend
Originally posted by: Chris_Laffra.ca.ibm.com

If you find any problems in Eclipse (including help),
you can always submit a bug for this....

--
Chris Laffra, http://eclipsefaq.org


"Gioele Barabucci" <barabucc@cs.unibo.it> wrote in message
news:ct3812$m5p$1@www.eclipse.org...
> Daniel Megert wrote:
> > OK - then may be you did not export the code from project A (Order and
> > Export page)?
> Yes, project A was not exporting itself.
> Thanks for the help.
>
> The eclipse help does not mention this. It should...
>
Previous Topic:eclipse hanging every so often
Next Topic:whats the proper way to subclass?
Goto Forum:
  


Current Time: Fri Jun 06 11:04:11 EDT 2025

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

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

Back to the top