Skip to main content

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

Title: 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