Bug 269718 - Drag and drop from variables view to expressions does not create valid expressions
Summary: Drag and drop from variables view to expressions does not create valid expres...
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-23 13:32 EDT by Samantha Chan CLA
Modified: 2009-03-23 13:32 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Samantha Chan CLA 2009-03-23 13:32:29 EDT
We can drag and drop a variable into the expressions view and get an watch expression created.  The default implementation of the drag and drop feature uses the variable name as the expression to monitor.  This does not work well for Java if we are dealing with a complex type.  Selecting a field of a class and dropping it to the Expressions View uses the field name as the expressions... which often results in invalid expressions, and hence cannot be evaluated.

I think JDT Debug needs to implement IWatchExpressionFactoryAdapter2 for a given element, and goes up the tree path, to properly create a watch expression for the drag and drop scenario.