Register IPartListener2 at start-up using DS. [message #879310] |
Thu, 31 May 2012 00:29 |
John Steele Messages: 50 Registered: January 2010 |
Member |
|
|
I would like to create an DS, which implements IPartListener2, and registers itself with the IPartService.
I have the DS immediate=true, because I need the service to start-up immediately, so that it can start listening for view events. The problem is it requires an active workbench page, which isn't available when the DS is instantiated.
Since the IPartService is not available globally, and only from the workbench window level down, what would you recommend for registering an OSGi service where consumers can expect to get information about all views in visible in the workbench.
Ideally, I would like to avoid having to manually register this listener programmatically because I'm extensively using DS.
Any thoughts or ideas are appreciated.
John
[Updated on: Thu, 31 May 2012 00:33] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03085 seconds