Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 340007
Collapse All | Expand All

(-)Eclipse UI/org/eclipse/ui/internal/ExceptionHandler.java (-2 / +6 lines)
Lines 11-16 Link Here
11
package org.eclipse.ui.internal;
11
package org.eclipse.ui.internal;
12
12
13
import org.eclipse.jface.window.Window;
13
import org.eclipse.jface.window.Window;
14
import org.eclipse.rwt.SessionSingletonBase;
14
15
15
/**
16
/**
16
 * This handler will pass along to the workbench advisor exceptions
17
 * This handler will pass along to the workbench advisor exceptions
Lines 20-26 Link Here
20
 */
21
 */
21
public final class ExceptionHandler implements Window.IExceptionHandler {
22
public final class ExceptionHandler implements Window.IExceptionHandler {
22
23
23
    private static final ExceptionHandler instance = new ExceptionHandler();
24
//RAP [if] Session scoped ExceptionHandler
25
//    private static final ExceptionHandler instance = new ExceptionHandler();
24
26
25
    /**
27
    /**
26
     * Returns the singleton exception handler.
28
     * Returns the singleton exception handler.
Lines 28-34 Link Here
28
     * @return the singleton exception handler
30
     * @return the singleton exception handler
29
     */
31
     */
30
    public static ExceptionHandler getInstance() {
32
    public static ExceptionHandler getInstance() {
31
        return instance;
33
// RAP [if] Session scoped ExceptionHandler
34
//        return instance;
35
        return ( ExceptionHandler )SessionSingletonBase.getInstance( ExceptionHandler.class );
32
    }
36
    }
33
37
34
    private int exceptionCount = 0; // To avoid recursive errors
38
    private int exceptionCount = 0; // To avoid recursive errors

Return to bug 340007