[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: How to open prompt dialog from IncrementalProjectBuilder ?
|
- From: matsu@xxxxxxxxxxxxxx (Hirotaka Matsumoto)
- Date: 3 Aug 2001 17:17:52 GMT
- Newsgroups: eclipse.tools
- Organization: http://www.eclipse.org
- User-agent: NewsPortal 0.23
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