[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: 6 Aug 2001 20:04:25 GMT
- Newsgroups: eclipse.tools
- Organization: http://www.eclipse.org
- User-agent: NewsPortal 0.23
Nick.
> Hmm, this seems to be a limitation of getActiveWorkbenchWindow().
> Try: Display.getDefault().getActiveShell() if all you want is a shell.
Display.getActiveShell() requires the caller needs to be UI thread...
> If you want the workbench window, then you'll need to do:
> Display.getDefault.syncExec(new Runnable() {
> public void run() {
> IWorkbenchWindow window =
> PlatformUI.getWorkbench().getActiveWorkbenchWindow();
> }
> );
Looks like it works, so I'll take this.
> But again, I would encourage you not to bring up dialogs from within a
> build.
Understood. But this dialog has a check box like "Continue propmt ?",
and if this is un-checked, this dialog no longer appears. I think,
adding this UI is much intuitive than only having this in the
preference.( Note: We have already had this in the preference, though)
Thanks.
H.Matsumoto