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

Bug 1569

Summary: Would like to inspect from the context of an inspect result (1GDKNZ7)
Product: [Eclipse Project] JDT Reporter: John Wiegand <John_Wiegand>
Component: DebugAssignee: Darin Wright <darin.eclipse>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: pesenson_leonid
Version: 2.0   
Target Milestone: ---   
Hardware: All   
OS: Windows NT   
Whiteboard:
Bug Depends on: 1546, 10318    
Bug Blocks:    

Description John Wiegand CLA 2001-10-10 22:15:32 EDT
After inspecting new Main(), I would like to send foo() to the result.
	Currently this is not possible.

NOTES:
	JW (5/11/01 12:26:21 PM) Not a show stopper, but a nice improvement.

DW (5/11/01 2:32:56 PM)
	I believe this would require a new evaluation context - i.e. we have a stack
	frame context and a global context, but we would need a way to tell the compiler
	about the inspected result, and how to resolve/refer to it.

	Would also need a UI to allow the snippet to be associated with the
	inspect item - i.e. like a VAJ or Smalltalk inspector.
Comment 1 DJ Houghton CLA 2001-10-24 06:35:51 EDT
PRODUCT VERSION: 105


Comment 2 Darin Wright CLA 2001-12-15 16:33:52 EST
*** Bug 6975 has been marked as a duplicate of this bug. ***
Comment 3 Darin Wright CLA 2001-12-29 16:46:24 EST
This is now implemented, but could use some refinement. The "context" in which 
an expression is compiled is that of the selected variable/value in the 
variable/expression view. You can now type expressions in the "detail/toString" 
area a la VAJ.

The "compilation context" may be confusing to the user. This also exposes our 
expression eval limitations related to class file deployment - i.e. no 
expression evaluations when there is no source, and when in a system package 
(java.lang).
Comment 4 Darin Wright CLA 2002-03-19 11:23:58 EST
Should now be able to fix code assist to reflect selected variable type using 
new code assist API. (AST Expression eval still needed to fix eval problems).
Comment 5 Darin Swanson CLA 2002-03-22 15:16:42 EST
Implemented.
Comment 6 Darin Swanson CLA 2002-03-22 15:17:50 EST
Please verify (darin W).
Comment 7 Darin Wright CLA 2002-03-25 12:19:09 EST
Verified code assist works properly. Now we await AST evals to make this 
function more usefult.