Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Notify the Application specific event
Notify the Application specific event [message #646905] Sun, 02 January 2011 20:33 Go to next message
ash is currently offline ash
Messages: 142
Registered: July 2010
Senior Member
Hi,

Can any one tell how implement
Event Notification ..... suppose a object is deleted from a view
all other view have to update itself....with out direct ref of the view... example delete event ... if 2 to 3 view displayed the info of the particular object if that object is deleted how will i notify the view to update itself bcoz object info which it is displaying is deleted.... i will implement the notify the application specific event...

Thanks
Ashok
Re: Notify the Application specific event [message #646921 is a reply to message #646905] Mon, 03 January 2011 03:09 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5242
Registered: July 2009
Senior Member
Use the EventAdmin-Service from OSGi.

Tom

Am 03.01.11 02:33, schrieb ash:
> Hi,
>
> Can any one tell how implement Event Notification ..... suppose
> a object is deleted from a view all other view have to update
> itself....with out direct ref of the view... example delete event ...
> if 2 to 3 view displayed the info of the particular object if that
> object is deleted how will i notify the view to update itself bcoz
> object info which it is displaying is deleted.... i will implement the
> notify the application specific event...
>
> Thanks
> Ashok
Re: Notify the Application specific event [message #646969 is a reply to message #646905] Mon, 03 January 2011 11:50 Go to previous messageGo to next message
ash is currently offline ash
Messages: 142
Registered: July 2010
Senior Member
Can u please provide the code snippet or any Url where
i can find the Example please...........
Re: Notify the Application specific event [message #646973 is a reply to message #646905] Mon, 03 January 2011 12:35 Go to previous messageGo to next message
ash is currently offline ash
Messages: 142
Registered: July 2010
Senior Member
Is There any other simple method to implements this ??????
Re: Notify the Application specific event [message #646999 is a reply to message #646969] Mon, 03 January 2011 17:18 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5242
Registered: July 2009
Senior Member
http://tomsondev.bestsolution.at/2011/01/03/enhanced-rcp-how -views-can-communicate/

Tom
Am 03.01.11 17:50, schrieb ash:
> Can u please provide the code snippet or any Url where i can find the
> Example please...........
Re: Notify the Application specific event [message #647216 is a reply to message #646905] Wed, 05 January 2011 01:45 Go to previous message
ash is currently offline ash
Messages: 142
Registered: July 2010
Senior Member
Hi,

I am getting this exception if run the code in Eclipse 3.5 (JDK 1.5)

Caused by: java.lang.NullPointerException: A null service reference is not allowed.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.g etService(BundleContextImpl.java:660)
at
DeleteJobUpdater.notifyAppEvent(DeleteSubJobUpdater.j ava:15 Cool
DeleteSubJobUpdater$1.run(DeleteSubJobUpdater.java:1 08)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:134)


IF i run the same code in Eclipse helious the code is running fine ... i dont know wht is wrong..... can u please help this is the impl i req....

Nullpointer is comming bcoz ServiceReference ref object is comming nulll....

Thanks
ashok



[Updated on: Wed, 05 January 2011 04:44]

Report message to a moderator

Previous Topic:closing a web browser editor
Next Topic:No syntax errors in editors from file system files
Goto Forum:
  


Current Time: Fri Jul 25 09:06:25 EDT 2014

Powered by FUDForum. Page generated in 0.02484 seconds