Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 191433 Details for
Bug 340007
Workbench ExceptionHandler should have session scope
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Patch that make ExceptionHandler session scoped
Bug-340007.patch (text/plain), 1.51 KB, created by
Ivan Furnadjiev
on 2011-03-17 12:02:00 EDT
(
hide
)
Description:
Patch that make ExceptionHandler session scoped
Filename:
MIME Type:
Creator:
Ivan Furnadjiev
Created:
2011-03-17 12:02:00 EDT
Size:
1.51 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rap.ui.workbench >Index: Eclipse UI/org/eclipse/ui/internal/ExceptionHandler.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/runtime.ui/org.eclipse.rap.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ExceptionHandler.java,v >retrieving revision 1.1 >diff -u -r1.1 ExceptionHandler.java >--- Eclipse UI/org/eclipse/ui/internal/ExceptionHandler.java 17 Apr 2008 12:03:46 -0000 1.1 >+++ Eclipse UI/org/eclipse/ui/internal/ExceptionHandler.java 17 Mar 2011 15:57:40 -0000 >@@ -11,6 +11,7 @@ > package org.eclipse.ui.internal; > > import org.eclipse.jface.window.Window; >+import org.eclipse.rwt.SessionSingletonBase; > > /** > * This handler will pass along to the workbench advisor exceptions >@@ -20,7 +21,8 @@ > */ > public final class ExceptionHandler implements Window.IExceptionHandler { > >- private static final ExceptionHandler instance = new ExceptionHandler(); >+//RAP [if] Session scoped ExceptionHandler >+// private static final ExceptionHandler instance = new ExceptionHandler(); > > /** > * Returns the singleton exception handler. >@@ -28,7 +30,9 @@ > * @return the singleton exception handler > */ > public static ExceptionHandler getInstance() { >- return instance; >+// RAP [if] Session scoped ExceptionHandler >+// return instance; >+ return ( ExceptionHandler )SessionSingletonBase.getInstance( ExceptionHandler.class ); > } > > private int exceptionCount = 0; // To avoid recursive errors
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 340007
: 191433