Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Application-specific event notification
Application-specific event notification [message #628666] Thu, 23 September 2010 15:16 Go to next message
Fabio M is currently offline Fabio MFriend
Messages: 25
Registered: July 2009
Junior Member
Hi everybody,

I was wondering if the Eclipse platform provides a workbench-wide
service for handling the notification of application-specific events
(i.e., listeners registration and events firing).

For example, imagine a plugin that wants to notify views and editors
that a given event occurred (e.g., new articles downloaded, documents
deleted, new data source created, etc.) so that views and editors can
react accordingly (e.g., an editor closes when the corresponding
document is deleted).

What I am looking for is something that allows me to do this:

notificationService.addListener(eventType, target);
notificationService.fireEvent(eventType, eventData);

I guess that this is not available in the standard platform and clients
should provide their own implementation.

Am I missing anything?

Thanks,
-Fabio
Re: Application-specific event notification [message #628667 is a reply to message #628666] Thu, 23 September 2010 15:19 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You are looking for the EventAdmin-Service of OSGi which is a MessageBus

Tom

Am 23.09.10 17:16, schrieb Fabio Mancinelli:
> Hi everybody,
>
> I was wondering if the Eclipse platform provides a workbench-wide
> service for handling the notification of application-specific events
> (i.e., listeners registration and events firing).
>
> For example, imagine a plugin that wants to notify views and editors
> that a given event occurred (e.g., new articles downloaded, documents
> deleted, new data source created, etc.) so that views and editors can
> react accordingly (e.g., an editor closes when the corresponding
> document is deleted).
>
> What I am looking for is something that allows me to do this:
>
> notificationService.addListener(eventType, target);
> notificationService.fireEvent(eventType, eventData);
>
> I guess that this is not available in the standard platform and clients
> should provide their own implementation.
>
> Am I missing anything?
>
> Thanks,
> -Fabio
>
>
>
>
Re: Application-specific event notification [message #628737 is a reply to message #628667] Thu, 23 September 2010 20:50 Go to previous message
Fabio M is currently offline Fabio MFriend
Messages: 25
Registered: July 2009
Junior Member
On 09/23/2010 05:19 PM, Tom Schindl wrote:
> You are looking for the EventAdmin-Service of OSGi which is a MessageBus
>
> Tom
>
Thanks Tom for the hint.

-Fabio
Previous Topic:Required Plug-Ins not found
Next Topic:Problem with plug-in shipping: Can't run a 32bit (SWT) plugin on a 64bit machine
Goto Forum:
  


Current Time: Fri Apr 26 21:34:46 GMT 2024

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

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

Back to the top