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

Hmm, this seems to be a limitation of getActiveWorkbenchWindow().
Try: Display.getDefault().getActiveShell() if all you want is a shell.

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();
        }
    );

But again, I would encourage you not to bring up dialogs from within a
build.

Nick