Bug 244662

Summary: Make editing Watch Expressions easier (in Expressions view)
Product: [Eclipse Project] JDT Reporter: Dominik Hurnaus <dominik.hurnaus>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 CC: curtis.windatt.public
Version: 3.5   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Dominik Hurnaus CLA 2008-08-20 04:24:45 EDT
Editing watch expressions currently requires the following steps:
* select the watch expression in the Expressions view
* right click expression
* select "Edit Watch Expression"

Unfortunately there are no hot keys for editing the expression (I don't like context menus and navigating around with the mouse too much).

I would suggest to create a hot key (e.g. "F2") that opens the "Edit Watch Expression" dialog, when a watch expression is selected, and/or open the dialog when the user double clicks a watch expression.

The improved behavior would require the following steps for editing watch expressions:
* select the watch expression in the Expressions view
* press F2

Similarly, adding watch expressions could be simplified by opening the "Add Watch Expression" dialog when the user double clicks in an empty area within the watch expression view.
Comment 1 Curtis Windatt CLA 2008-08-20 09:46:18 EDT
You can use Shift-F10 to open the context menu and then hit 'e' to edit or 'a' to add a watch expression.

Double clicking is typically reserved for expanding/collapsing in a tree.  If accidentally missing the text results in a new expression, I could see some people getting annoyed.