[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: How to open prompt dialog from IncrementalProjectBuilder ?

Hello, Nick.

> PlatformUI.getWorkbench().getActiveWorkbenchWindow(), but bear in mind that
> it can return null.  From IWorkbenchWindow you can get the shell using
> getShell().

I tried this and figured out that
PlatformUI.getWorkbench().getActiveWorkbenchWindow()
always returns null since builder runs on non-GUI thread,
so that the call of Display.getCurrent() from builder(non-GUI thread)
always returns null, and it results that I can't get IWorkbenchWindow..
Any idea on this ??

Thanks.
H.Matsumoto