Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » signal all plugins to perform action(how to signal all plugins of a defined type to perform an action?)
signal all plugins to perform action [message #681893] Thu, 09 June 2011 23:01 Go to next message
Eclipse UserFriend
i have a bunch of plugins have that hold some business logic cache. is it possible from some plugin to tell all other plugins to refresh?

if not, then i have to put the cache in a central place.
Re: signal all plugins to perform action [message #682135 is a reply to message #681893] Fri, 10 June 2011 09:38 Go to previous message
Eclipse UserFriend
For inter-plugin communication, you should look at creating OSGi services. You create a service interface and an implementation. All the concerned plugins can look up that service and register. Then the service can inform them of the refresh requirement.

If the business logic cache contains the same info, you can do the same thing. Create a business logic cache service, and have all of the plugins look up that service and talk to it.

Some links on OSGi services:

http://aniszczyk.org/2008/03/08/visualizing-osgi-services/
http://www.vogella.de/articles/OSGi/article.html#desconsumer
http://www.knopflerfish.org/osgi_service_tutorial.html
Previous Topic:JasperWave - completely new Eclipse-based designer for JasperReports
Next Topic:Context menu actions in Common Navigator
Goto Forum:
  


Current Time: Tue Jul 15 14:24:07 EDT 2025

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

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

Back to the top