|Re: 'Workbench has not yet been created' issue [message #723427 is a reply to message #720622]
||Thu, 08 September 2011 10:22
Registered: September 2011
The Activator will be called when the plugin is activated. This is basically an OSGI function and is not directly related to the Workbench state!|
If your plugin wants to invoked any GUI functions you need to wait until the Workbench is fully loaded!
You can monitor the state of the application via a WorkbenchWindowAdvisor. This class defines multiple callback methods.
The relevant methods in this case are:
postWindowCreate - called after the window has been created, either from an initial state or from a restored state; used to adjust the window
openIntro - called immediately before the window is opened in order to create the introduction component, if any.
postWindowOpen - called after the window has been opened; use to hook window listeners, etc.
Powered by FUDForum
. Page generated in 0.02976 seconds