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

Bug 336268

Summary: [Memory Browser] Need to set NULL selection when the tab for the actve rendering is closed
Product: [Tools] CDT Reporter: Alain Lee <a-lee>
Component: cdt-memoryAssignee: Randy Rohrbach <Randy.Rohrbach>
Status: RESOLVED FIXED QA Contact: Ted Williams <ted>
Severity: major    
Priority: P3 CC: cdtdoug, Randy.Rohrbach
Version: 8.0Flags: Randy.Rohrbach: review? (john.cortell)
Target Milestone: 8.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch to set NULL selection the activing rendering is closed cdtdoug: iplog+

Description Alain Lee CLA 2011-02-03 13:18:13 EST
When Memory Browser have multiple tabs and a tab is closed, the Active Rendering is switched to the next available tab and a Selection Change event is sent. However, it there is only one tab and the tab is closed, no Selection Change event is sent and the Active Rendering is set to NULL but the selection is not updated. Whoever needs to monitor the selection in Memory Browser will not know that the Active Rendering has been changed to NULL.
Comment 1 Alain Lee CLA 2011-02-08 17:34:20 EST
Created attachment 188556 [details]
Patch to set NULL selection the activing rendering is closed
Comment 2 Randy Rohrbach CLA 2011-02-09 12:50:43 EST
I'll take this one.
Just q quick update.
Randy
Comment 3 Randy Rohrbach CLA 2011-02-09 13:41:24 EST
I checked in this change to 8.0

Randy
781-364-2226
Comment 4 CDT Genie CLA 2011-02-10 09:28:08 EST
*** cdt cvs genie on behalf of rarohrba ***
Bug 336268 create empty selection when last tab is disposed.

[*] MemoryBrowser.java 1.38 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/MemoryBrowser.java?root=Tools_Project&r1=1.37&r2=1.38