Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 05:45 Go to next message
Saurabh Mising name is currently offline Saurabh Mising nameFriend
Messages: 21
Registered: October 2010
Junior Member
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 10:00 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
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 10:51 Go to previous messageGo to next message
Saurabh Mising name is currently offline Saurabh Mising nameFriend
Messages: 21
Registered: October 2010
Junior Member
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 11:05 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
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 11:44 Go to previous messageGo to next message
Florian Philipp is currently offline Florian PhilippFriend
Messages: 43
Registered: February 2010
Member
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 14:49 Go to previous message
John Ormerod is currently offline John OrmerodFriend
Messages: 39
Registered: January 2010
Member
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: Wed Dec 04 15:42:43 GMT 2024

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

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

Back to the top