Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-team-dev] Catch exception


That's an instance of SWTException (which is a runtime exception)



"Kadadi, Usha D" <Usha.Kadadi@xxxxxx>
Sent by: platform-team-dev-admin@xxxxxxxxxxx

15/07/2004 11:27 AM

Please respond to
platform-team-dev

To
<platform-team-dev@xxxxxxxxxxx>, <platform-ui-dev@xxxxxxxxxxx>
cc
Subject
RE: [platform-team-dev] Catch exception





The 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@xxxxxxxxxxx

15/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


Back to the top