|Re: How to import exported packages from an own plugin? [message #649802 is a reply to message #649083]
||Thu, 20 January 2011 15:05
| Eric Rizzo
Registered: July 2009
On 1/17/11 9:59 AM, Tom Brandenburg wrote:|
> Hello all,
> currently I want to make exported packages of my plugin available for
> any kind of project. Regardless if it is a simple java project or plugin
> project or something else.
> If I have a plugin project I just make it dependent on my own plugin
> (with the exported package) and I can use the exported package with
> "import my.package;".
> Once I want to do the same (import my.package) in a simple java
> workspace project, my only idea to make this work is to add the jar of
> the plugin to the build path. Otherwise I havn't found a way to do so.
> So my questions are: Is this the only way to do so? and: Is my general
> approach of having a plugin which publishes packages appropriate for
> this task?
It doesn't work that way; ordinary workspace Java projects can't depend
on installed plug-ins. You can depend on plug-in code if the plugin is
loaded as a workspace project (as opposed to being installed into the
running Eclipse instance), but I don't think that's what you're talking
It's possible to write a plugin that modifies workspace projects to add
things to their build path; perhaps that what you want?
Powered by FUDForum
. Page generated in 0.01793 seconds