|Closing editor from a job [message #490162]
||Wed, 07 October 2009 11:32
| chris snow
Registered: July 2009
I'm trying to close an editor from a job,|
IWorkbench wb = PlatformUI.getWorkbench();
IWorkbenchWindow win = wb.getActiveWorkbenchWindow();
IWorkbenchPage pg = win.getActivePage();
The problem is that from within the job I don't appear to have an ActiveWorkbenchWindow as it is null.
How can I close an editor from within a job?
Many thanks in advance,
Powered by FUDForum
. Page generated in 0.01401 seconds