Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Exchanging data between plugins
Exchanging data between plugins [message #436017] Mon, 29 August 2005 22:04 Go to next message
Thomas is currently offline ThomasFriend
Messages: 151
Registered: July 2009
Senior Member
Hi everybody,

i know this has been asked before, but i simple donŽt get the point how to
do it and havenŽt found any example code.

I want ot exchange data between two plugins.

Plugin No.1 is doing a search on a database.
Plugin No.2 should use this data for further processing.

How can i transfer the data from Plugin No.1 to Plugin No.2 ?

IŽve read that i might have to define extension points.
Can anybody please give me a little bit more of a description on how to
achieve this?
Any examples, maybe?

IŽm pretty confused at the moment and have looked for ages on how to
achieve something like this.

Greetings
Thomas
Re: Exchanging data between plugins [message #436176 is a reply to message #436017] Thu, 01 September 2005 16:16 Go to previous message
Cedric Hyppolite is currently offline Cedric HyppoliteFriend
Messages: 22
Registered: July 2009
Junior Member
Thomas wrote:
> Hi everybody,
>
> i know this has been asked before, but i simple donŽt get the point how
> to do it and havenŽt found any example code.
>
> I want ot exchange data between two plugins.
>
> Plugin No.1 is doing a search on a database.
> Plugin No.2 should use this data for further processing.
>
> How can i transfer the data from Plugin No.1 to Plugin No.2 ?
>
> IŽve read that i might have to define extension points.
> Can anybody please give me a little bit more of a description on how to
> achieve this?
> Any examples, maybe?
>
> IŽm pretty confused at the moment and have looked for ages on how to
> achieve something like this.
>
> Greetings
> Thomas
>

Hi,

You don't really need to define extension points for this.
You can, for example, have a DBManager class on one side and a
DBResultPresentation class on the other side.

They know each other by using a singleton on the DBManager side.

private static final DBManager instance = new DBManager();
static DBManager getSingleton() {
return instance;
}

And DBManager.getSingleton() in the DBResultPresentation class.

You would need to use extension if for example, the number and type of
DB in the application is defined through the use of a plugin. In this
case you would have to first discover the DB available in the current
context and then get a reference to them.

Hth,

Cedric
Previous Topic:RCP Large jpeg Image Load
Next Topic:Show Progress & Splash Screen with Webstart
Goto Forum:
  


Current Time: Thu Dec 05 17:28:55 GMT 2024

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

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

Back to the top