User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130
The easiest way is to use the IWorkbenchWindow associated with your
view. It implements IRunnableContext, using the run(...) method on it
and it will automatically use the progress bar of the window.
To get the IWorkbenchWindow, IViewPart.getSite().getWorkbenchWindow().