Problem with Shell.close() [message #456695] |
Tue, 07 June 2005 04:12  |
Eclipse User |
|
|
|
Hello,
I have written a simple eclipse plugin which creates its own shell, i.e
-----
Display display = Display.getCurrent();
Shell shell = new Shell(display);
...
...
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) {
display.sleep();
}
}
-----
I have a simple Exit Action which looks like,
-----
class ExitAction extends Action {
public ExitAction() {
super("Exit");
}
public void run() {
shell.close();
}
}
-----
When I close the application using this action, the eclipse instance
crashes with a nice showsplash message (showsplash 600). Closing it using
the 'X' in the upper right corner works beautifully. What could be wrong
here?
Best Regards
-Thomas
|
|
|
|
Powered by
FUDForum. Page generated in 0.05668 seconds