|
Re: Get a SHELL [message #480353 is a reply to message #480274] |
Sat, 15 August 2009 20:11 |
Wim Jongman Messages: 423 Registered: July 2009 |
Senior Member |
|
|
Hi Encom79,
A stacktrace would be nice but before you post that, try to execute this code
in the user interface thread:
Display.getDefault().asyncExec(new Runnable(){run(){
ErrorDialog.openError(Display.getDefault().getActiveShell(), "", "", null)
}});
If this works then read the user interface thread information in the
workbench offline help to understand why this works:
Platform Plug-in Developer Guide > Programmer's Guide > Standard Widget
Toolkit > Threading issues
Best regards,
Wim Jongman
> Hi
>
> How to get a shell in a plugin code. The following code is a earlyStartup
> Plugin.
> It crashes when it attempts to display an error.
>
> public EarlyStartup()
> {
> if (...)
> {
>
> }
> else
> {
> ErrorDialog.openError(Display.getDefault().getActiveShell(),
> "", "", null);
> }
> }
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03662 seconds