| [platform-ui-dev] Catch exception |
-----Original Message-----
From: Kadadi, Usha D
Sent: Thursday, July 15, 2004 8:36 AM
To: 'platform-ui-dev@xxxxxxxxxxx'
Subject: RE: [platform-team-dev] Catch exception-----Original Message-----
From: Kadadi, Usha D
Sent: Thursday, July 15, 2004 8:28 AM
To: 'platform-team-dev@xxxxxxxxxxx'; 'platform-ui-dev@xxxxxxxxxxx'
Subject: RE: [platform-team-dev] Catch exceptionThe error message i get is "Unhandled exception caught in event loop.Reason:Widget is disposed"-----Original Message-----
From: platform-team-dev-admin@xxxxxxxxxxx [mailto:platform-team-dev-admin@xxxxxxxxxxx]On Behalf Of Michael Valenta
Sent: Thursday, July 15, 2004 8:15 AM
To: platform-team-dev@xxxxxxxxxxx
Subject: Re: [platform-team-dev] Catch exception
What exception is being thrown (i.e. from the code, it appears that the exception is swallowed by the handler (whatever that is))?
Also, a better place for this question would be either the eclipse-platform newsgroup or the platform-ui-dev mailing list. his mailing list is for team related development questions.
Michael
"Kadadi, Usha D" <Usha.Kadadi@xxxxxx>
Sent by: platform-team-dev-admin@xxxxxxxxxxx15/07/2004 10:16 AM
Please respond to
platform-team-dev
To<platform-team-dev@xxxxxxxxxxx> cc Subject[platform-team-dev] Catch exception
Hi ,
An exception is being thrown by this method of org.eclipse.ui.internal.workbench class.
/**
* run an event loop for the workbench.
*/
protected void runEventLoop() {
Display display = Display.getCurrent();
runEventLoop = true;
while (runEventLoop) {
try {
if (!display.readAndDispatch())
display.sleep();
} catch (Throwable t) {
handler.handleException(t);
}
}I would like to catch this in a method getChildren(Object o) of org.eclipse.ui.model
Interface IWorkbenchAdapter. Everytime i put the catch block .It gives me an error unreachable catch block.I would like to know what is the exception I need to catch.
Thanks