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

Bug 316618

Summary: Debug context activation causes expressions view updates when hidden if selection is empty
Product: [Eclipse Project] Platform Reporter: Darin Wright <darin.eclipse>
Component: DebugAssignee: Platform-Debug-Inbox <platform-debug-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ndsilva
Version: 3.4.2   
Target Milestone: 3.5.2+   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch for 3.5.x none

Description Darin Wright CLA 2010-06-11 10:33:26 EDT
Follow up from bug 316514

The expressions view overrides the variables view's contextActivated() method,
and usually delegates these events to the parent.  However, if the selection is
empty (such as when a suspended thread with its top stack frame selected is
collapsed) the view does not check to see if it is visible, but goes ahead and
sets the input.  This triggers the installation of the
DefaultWatchExpressionModelProxy, (one per expression in the view), which, in
turn, causes the expressions to be evaluated on suspend when the view is NOT
visible.
Comment 1 Darin Wright CLA 2010-06-11 10:33:56 EDT
Created attachment 171729 [details]
patch for 3.5.x
Comment 2 Darin Wright CLA 2010-06-11 10:34:26 EDT
Released to 3.5.2
Comment 3 Darin Wright CLA 2010-06-11 10:34:39 EDT
(In reply to comment #2)
> Released to 3.5.2

Sorry, 3.5.2+