Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 319061

Summary: StackRenderer's showTab(MUIElement) method is invoked twice when showing a part
Product: [Eclipse Project] e4 Reporter: Remy Suen <remy.suen>
Component: UIAssignee: Project Inbox <e4.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.0   
Target Milestone: 1.0 RC2   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Ensure that the LSR events only fire for the 'owning' renderer none

Description Remy Suen CLA 2010-07-06 18:44:01 EDT
1. Launch your inner.
2. Put a breakpoint in StackRenderer's showTab(MUIElement) method.
3. Show a view that's not in any of the existing stacks.
4. The breakpoint is hit twice.

The problem is because of LazyStackRenderer's 'lazyLoader' EventHandler instance.

As there is a PerspectiveStackRenderer and a StackRenderer, both of these instances are hooked to the event broker and two notifications get fired.
Comment 1 Eric Moffatt CLA 2010-07-07 09:22:55 EDT
Created attachment 173647 [details]
Ensure that the LSR events only fire for the 'owning' renderer
Comment 2 Eric Moffatt CLA 2010-07-07 10:07:36 EDT
Committed in >20100707. Applied the patch.