Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » how do i reference another project for my plugin' project?
how do i reference another project for my plugin' project? [message #297156] Tue, 10 January 2006 03:44 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:How do i create nested propertydescriptors
Next Topic:How to open a file from an eclipse plug in?
Goto Forum:
  


Current Time: Thu Sep 25 21:49:53 EDT 2025

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

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

Back to the top