Bug 186597

Summary: [evaluation] evaluation actions should work on relevant expression
Product: [Eclipse Project] JDT Reporter: Darin Wright <darin.eclipse>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: curtis.windatt.public, davor.cubranic
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Darin Wright CLA 2007-05-11 12:28:17 EDT
3.3

When there is no explicit selection for an evaluation, we use the current word/identifier containing the caret for an evaluation expression. We should resolve a more relevant expression. For example, if the selected element is a field name, then the expression should be the field. If the selected element is a method, then the expression should include receiver and method arguments.
Comment 1 Darin Wright CLA 2007-05-11 12:28:28 EDT
Consider post 3.3
Comment 2 Curtis Windatt CLA 2007-08-31 15:51:08 EDT
*** Bug 201429 has been marked as a duplicate of this bug. ***
Comment 3 Davor Cubranic CLA 2007-08-31 17:11:58 EDT
What if there are multiple elements in the expression, something like "1+1" with cursor at the end?

How about working on the entire line when the cursor is at the end? I think that's how DoIt works in Squeak, for example.