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 147296 Details for
Bug 287451
Memory leak in WorkbenchPresentationFactory
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]
Propersed fix
clipboard.txt (text/plain), 1.99 KB, created by
RĂ¼diger Herrmann
on 2009-09-16 07:19:52 EDT
(
hide
)
Description:
Propersed fix
Filename:
MIME Type:
Creator:
RĂ¼diger Herrmann
Created:
2009-09-16 07:19:52 EDT
Size:
1.99 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rap.ui.workbench >Index: Eclipse UI/org/eclipse/ui/presentations/WorkbenchPresentationFactory.java >=================================================================== >RCS file: /cvsroot/rt/org.eclipse.rap/runtime.ui/org.eclipse.rap.ui.workbench/Eclipse UI/org/eclipse/ui/presentations/WorkbenchPresentationFactory.java,v >retrieving revision 1.5 >diff -u -r1.5 WorkbenchPresentationFactory.java >--- Eclipse UI/org/eclipse/ui/presentations/WorkbenchPresentationFactory.java 2 Jun 2008 08:48:50 -0000 1.5 >+++ Eclipse UI/org/eclipse/ui/presentations/WorkbenchPresentationFactory.java 16 Sep 2009 11:22:21 -0000 >@@ -12,10 +12,9 @@ > package org.eclipse.ui.presentations; > > import org.eclipse.jface.preference.IPreferenceStore; >-import org.eclipse.rwt.RWT; >-import org.eclipse.rwt.service.SessionStoreEvent; >-import org.eclipse.rwt.service.SessionStoreListener; > import org.eclipse.swt.SWT; >+import org.eclipse.swt.events.DisposeEvent; >+import org.eclipse.swt.events.DisposeListener; > import org.eclipse.swt.widgets.Composite; > import org.eclipse.ui.IWorkbenchPreferenceConstants; > import org.eclipse.ui.PlatformUI; >@@ -88,14 +87,11 @@ > if( !Workbench.getInstance().isClosing() ) { > final DefaultMultiTabListener defaultMultiTabListener = new DefaultMultiTabListener(workbenchPreferences, > IWorkbenchPreferenceConstants.SHOW_MULTIPLE_EDITOR_TABS, folder); >- >- RWT.getSessionStore().addSessionStoreListener(new SessionStoreListener() { >- >- public void beforeDestroy(SessionStoreEvent event) { >- defaultMultiTabListener.attach(null, IWorkbenchPreferenceConstants.SHOW_MULTIPLE_EDITOR_TABS, true); >+ result.getControl().addDisposeListener( new DisposeListener() { >+ public void widgetDisposed( DisposeEvent event ) { >+ defaultMultiTabListener.attach(null, IWorkbenchPreferenceConstants.SHOW_MULTIPLE_EDITOR_TABS, true); > } >- >- }); >+ } ); > } > // RAPEND: [bm] >
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 287451
: 147296