Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » How to dynamically installation/loading of plugins from directories in the file system?
How to dynamically installation/loading of plugins from directories in the file system? [message #38911] Tue, 30 March 2004 02:06 Go to next message
Eclipse UserFriend
Originally posted by: Michael-Scharf.gmx.de

Hi,

is it possible to (dynamically) load plugins from "random"
directories in the file system?

Expressed differently: can I write a plugin that detects
plugins outside the eclipse plugins directory and installs
those plugins into eclipse, without copying the content of
the external plugin into the plugins directory?

Here is the problem we are trying to solve: eclipse will be
part of our product but the product contains other, non
eclipse (non java) sub-products. Each sub-products has its
own directory tree and it's easy for the user install or
delete such sub-product directory trees. Each of the
sub-products comes with its own documentation. We want to
make the documentation available within eclipse (using the
eclipse help system). The most natural way to place the
sub-product documentation is the sub-product directory, and
let eclipse (upon startup) find those documentation plugins
and install them.....

Is this possible with osgi in eclipse 3?

Regards,

Michael
Re: How to dynamically installation/loading of plugins from directories in the file system? [message #38936 is a reply to message #38911] Tue, 30 March 2004 03:48 Go to previous message
Eclipse UserFriend
Originally posted by: dorian.birsan.net

"Michael Scharf" <Michael-Scharf@gmx.de> wrote in message
news:c4akcm$29q$1@eclipse.org...
> Hi,
>
> is it possible to (dynamically) load plugins from "random"
> directories in the file system?
>
> Expressed differently: can I write a plugin that detects
> plugins outside the eclipse plugins directory and installs
> those plugins into eclipse, without copying the content of
> the external plugin into the plugins directory?
>
> Here is the problem we are trying to solve: eclipse will be
> part of our product but the product contains other, non
> eclipse (non java) sub-products. Each sub-products has its
> own directory tree and it's easy for the user install or
> delete such sub-product directory trees. Each of the
> sub-products comes with its own documentation. We want to
> make the documentation available within eclipse (using the
> eclipse help system). The most natural way to place the
> sub-product documentation is the sub-product directory, and
> let eclipse (upon startup) find those documentation plugins
> and install them.....
>
> Is this possible with osgi in eclipse 3?

It is, but you can do it without any effort if you can structure your
subproduct installs as eclipse product extensions:
In each subproduct, have a structure that looks like
eclipse
.eclipseextension
features <--- this is optional
plugins
each help plugin

Then, in your main eclipse, create a folder called "links" with a
subproduct.link file for each subproduct.
The content of the subproduct.link file should be something like:
path=absolute/path/to/subproduct
(your product installer will have to create these link appropriately).
Just start eclipse and everything shoul be picked up automagically.
For more details, do a search for eclipse product extension in the online
help.
>
> Regards,
>
> Michael
Previous Topic:Removing the Basic perspective in RCP
Next Topic:"Porting" from 2.1.2 to 3.0
Goto Forum:
  


Current Time: Thu Apr 25 23:48:22 GMT 2024

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

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

Back to the top