Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319061 - StackRenderer's showTab(MUIElement) method is invoked twice when showing a part
Summary: StackRenderer's showTab(MUIElement) method is invoked twice when showing a part
Status: RESOLVED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.0 RC2   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-06 18:44 EDT by Remy Suen CLA
Modified: 2010-07-20 13:23 EDT (History)
0 users

See Also:


Attachments
Ensure that the LSR events only fire for the 'owning' renderer (979 bytes, patch)
2010-07-07 09:22 EDT, Eric Moffatt 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 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.