Skip to main content


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] Mon, 03 January 2011 01:33 Go to next message
ash is currently offline ashFriend
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 08:09 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
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 16:50 Go to previous messageGo to next message
ash is currently offline ashFriend
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 17:35 Go to previous messageGo to next message
ash is currently offline ashFriend
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 22:18 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
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 06:45 Go to previous message
ash is currently offline ashFriend
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 09: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 Apr 19 13:02:39 GMT 2024

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

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

Back to the top