Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Communication between views(What are different mechanisms to communicate between RCP Views)
Communication between views [message #631969] Mon, 11 October 2010 01:45 Go to next message
Eclipse UserFriend
I want to communicate between two views in RCP.
I can not use the selection service since the ViewA does not have any selection provider.
ViewA has Hyperlink images. When a link is clicked on ViewA, i want the ViewB to be updated.
I dont want to use page.showView method in the viewA.
What options do I have to communicate between two views in RCP.
Re: Communication between views [message #632042 is a reply to message #631969] Mon, 11 October 2010 06:00 Go to previous messageGo to next message
Eclipse UserFriend
On 11.10.2010 07:45, Saurabh wrote:
> I want to communicate between two views in RCP.
> I can not use the selection service since the ViewA does not have any
> selection provider. ViewA has Hyperlink images. When a link is clicked
> on ViewA, i want the ViewB to be updated. I dont want to use
> page.showView method in the viewA.
> What options do I have to communicate between two views in RCP.

We also have several views that are no selection providers. In
this case it's useful and not too much work to either invent
your own generalized "selection" notification API or to use
an existing one (e.g. osgi EventAdmin).

HTH & Greetings from Bremen,

Daniel Krügler
Re: Communication between views [message #632044 is a reply to message #631969] Mon, 11 October 2010 06:51 Go to previous messageGo to next message
Eclipse UserFriend
Thanks for the inputs. I wil try to find more information on the OSGI EVentAdmin. Is there any link which describes the use of EventAdmin?

Meanwhile, I also read about SourceProvider and SourceProviderListener. One view updates a SourceProvider and the other view is a SourceProviderListener. Do you think this mechanism can help in communicating between views?
Re: Communication between views [message #632054 is a reply to message #632044] Mon, 11 October 2010 07:05 Go to previous messageGo to next message
Eclipse UserFriend
On 11.10.2010 12:51, Saurabh wrote:
> Thanks for the inputs. I wil try to find more information on the OSGI
> EVentAdmin. Is there any link which describes the use of EventAdmin?

Sorry, I have none in my mind.

> Meanwhile, I also read about SourceProvider and SourceProviderListener.
> One view updates a SourceProvider and the other view is a
> SourceProviderListener. Do you think this mechanism can help in
> communicating between views?

Yes, that should work as well.

HTH & Greetings from Bremen,

Daniel Krügler
Re: Communication between views [message #632055 is a reply to message #632044] Mon, 11 October 2010 07:44 Go to previous messageGo to next message
Eclipse UserFriend
Saurabh wrote on Mon, 11 October 2010 06:51
Thanks for the inputs. I wil try to find more information on the OSGI EVentAdmin. Is there any link which describes the use of EventAdmin?



Here: http://www.osgi.org/Download/Release4V42

Click on "No thanks ...", accept the agreement and then download the Compendium Specification.
Re: Communication between views [message #632326 is a reply to message #631969] Tue, 12 October 2010 10:49 Go to previous message
Eclipse UserFriend
Saurabh

Have a look at this very readable article from IBM's developerWorks:
http://www.ibm.com/developerworks/opensource/library/os-ecll ink/

It covers three typical ways:
1. selection service
2. IAdaptable
3. property change listener

Regards, John
Previous Topic:Extension-point schema 'kind="indentifier" - what's its purpose?
Next Topic:JRE gets included in product
Goto Forum:
  


Current Time: Mon Apr 21 11:38:36 EDT 2025

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

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

Back to the top