Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Eclipse Plugins & Common Data
Eclipse Plugins & Common Data [message #298030] Tue, 24 January 2006 06:17 Go to next message
Eclipse UserFriend
Originally posted by: sim085.hotmail.com

Hi, I have posted this in the java community, however I was told that this
is a better place to ask this question:

I have two questions regarding eclipse plug-ins. I have read the IBM
documentation I found on the net about how to start a simple plug-in and
continue further to that, however I still have some questions which were
not answered in this document.

My first question is whether there is a way in eclipse that plug-ins can
share information between them. I do not mean one plug-ins saving a file,
and another one can open it as well. More like a layer of abstraction used
by the plug-ins to save there data.

My second question is not that important, since I already figured a way
around it, however wanted to ask it as well. Is there a way that plug-ins
can call other plug-ins?

Thanks
Sim085
Re: Eclipse Plugins & Common Data [message #298040 is a reply to message #298030] Tue, 24 January 2006 07:21 Go to previous messageGo to next message
Eclipse UserFriend
sim085 wrote:
> My first question is whether there is a way in eclipse that plug-ins can
> share information between them. I do not mean one plug-ins saving a
> file, and another one can open it as well. More like a layer of
> abstraction used by the plug-ins to save there data.

Sure, you can store your data in PluginA and ask for it in PluginB.
This is straightforward and a lot of plugins do it this way.

The next layer out is to have PluginA be a common data repository, and
PluginB and PluginC share the data through PluginA.

There's also the more abstract version of this where PluginA defines a
"service", PluginB provides the service (and through it the common
data), and PluginC and PluginD use the service and depend on PluginA.

>
> My second question is not that important, since I already figured a way
> around it, however wanted to ask it as well. Is there a way that
> plug-ins can call other plug-ins?

Have PluginB depend on PluginA in the manifest editor, and then in
PluginB code somewhere you can have PluginA.getDefault()

Later,
PW
Re: Eclipse Plugins & Common Data [message #298041 is a reply to message #298040] Tue, 24 January 2006 08:20 Go to previous message
Eclipse UserFriend
Originally posted by: sim085.hotmail.com

First of all a big thanks for your answer :) It already made things more
clear to me, and showed what I need to go search next :)

Thank you very much :)

Regards,
Sim085
Previous Topic:2fast4u - Headless plugin export with "Build" application entry point
Next Topic:Null scheduling rules and access to resources
Goto Forum:
  


Current Time: Sun Jul 06 02:36:39 EDT 2025

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

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

Back to the top