Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347014 - Leak of N number of listeners for N tab changes, preserved until the folder is destroyed
Summary: Leak of N number of listeners for N tab changes, preserved until the folder i...
Status: RESOLVED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 4.1 RC3   Edit
Assignee: Remy Suen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-24 11:52 EDT by Remy Suen CLA
Modified: 2011-05-24 12:04 EDT (History)
0 users

See Also:


Attachments
StackRenderer patch v1 (2.21 KB, patch)
2011-05-24 12:04 EDT, Remy Suen CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Remy Suen CLA 2011-05-24 11:52:11 EDT
A MenuDetectListener is attached to the tab folder in StackRenderer's showTab(MUIElement) implementation. Since this method is called every time there's a tab change, we are creating N listeners for N number of tab changes.
Comment 1 Remy Suen CLA 2011-05-24 12:04:09 EDT
Created attachment 196460 [details]
StackRenderer patch v1

Change the renderer to hook the listener in its hookControllerLogic(MUIElement) method.
Comment 2 Remy Suen CLA 2011-05-24 12:04:46 EDT
(In reply to comment #1)
> Created attachment 196460 [details]
> StackRenderer patch v1

Patch released to CVS HEAD.