how do i reference another project for my plugin' project? [message #297156] |
Tue, 10 January 2006 03:44  |
Eclipse User |
|
|
|
i hope import another package from another project ?
if i reference project by Properities->java build path->project, i can
declare a variable of another project's class.
but it can't contruct this variable. it will throw an Exception and my
plugin project can't execute.
|
|
|
Re: how do i reference another project for my plugin' project? [message #297184 is a reply to message #297156] |
Tue, 10 January 2006 07:36  |
Eclipse User |
|
|
|
veinson.fu wrote:
> i hope import another package from another project ?
>
> if i reference project by Properities->java build path->project, i can
> declare a variable of another project's class.
>
> but it can't contruct this variable. it will throw an Exception and my
> plugin project can't execute.
>
>
If you have a pluginA and pluginB, you can reference a class from
pluginA in pluginB ... the dependancies are specified in the manifest
editor.
If you mean you have a project javaA, and you want to reference the
classes from pluginB, you have a couple of choices.
1. Export javaA as a jar, and import it into pluginB ... there are steps
for 3rd party jars, like
http://dev.eclipse.org/newslists/news.eclipse.platform/msg48 366.html
2. Turn javaA into pluginA and export the packages you need.
Either way, when it's time to run your application, pluginB needs to be
deployed and to be able to see the classes from javaA ... either because
javaA has been turned into a plugin or because javaA was turned into a
jar, included in pluginB, and noted in the manifest.
Later,
PW
|
|
|
Powered by
FUDForum. Page generated in 0.04548 seconds