Start jobs immediately after the workbench started
There are several options to start jobs immediately after workbench started:
- Use the
org.eclipse.ui.startup
extension point in yourplugin.xml
. Note that UI manipulations have to be executed byDisplay.syncExec()
respDisplay.asyncExec()
as we are not in UI thread at that moment. ApplicationWorkbenchWindowAdvisor
has several methods likepostWindowOpen
where custom code can be executed.- Using
UIJob
. When you place a job in that queue it will be executed as soon as the workbench is fully initialized. - Put code in the
start
method ofActivator
. This method is called very early and can hardly be used for UI stuff.