Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 45481 - Double click to select current line in Display View
Summary: Double click to select current line in Display View
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: 3.0 M8   Edit
Assignee: Darin Swanson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-23 23:47 EDT by Wassim Melhem CLA
Modified: 2012-03-05 13:04 EST (History)
1 user (show)

See Also:


Attachments
override getDoubleClickStrategy() to select the whole line (1.99 KB, patch)
2004-02-09 19:40 EST, Kevin Barnes CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Wassim Melhem CLA 2003-10-23 23:47:36 EDT
Disclaimer: Maybe I just don't know how to use the Display view properly, in 
which case I apologize in advance for wasting everybody's time.

It seems that you can't perform the Display action in the view unless you 
select the full expression and select 'Display' from the context menu or from 
the toolbar menu.
I would expect that pressing Enter at the end of the line should automatically 
invoke the Display action on the expression I just typed.
Having to select the full line, which can be potentially be long, is too much.

Another thing I tried was to double-click on the line hoping that it would 
highlight the entire expression (much like when you double-click on the URL in 
the address bar of a browser).  But double-clicking on the expression in the 
Display view selects a segment of the expression which is useless.
Comment 1 Darin Wright CLA 2003-10-24 09:39:00 EDT
The display view accepts code snippets - i.e. more than one line, containing 
one or more statements. Thus, selecting one line may/may not be the correct 
action. Only the user knows how much code to execute.
Comment 2 Darin Wright CLA 2003-10-24 14:35:36 EDT
We could add a double-click feature to select the current line.
Comment 3 Darin Swanson CLA 2004-02-09 16:54:20 EST
As you requested Kevin...
Comment 4 Kevin Barnes CLA 2004-02-09 19:40:44 EST
Created attachment 7741 [details]
override getDoubleClickStrategy() to select the whole line
Comment 5 Darin Swanson CLA 2004-02-20 14:06:05 EST
Patch applied.
Comment 6 Darin Swanson CLA 2004-02-20 14:06:38 EST
And verified.
Comment 7 Markus Keller CLA 2012-03-05 13:04:10 EST
This has been reverted for 3.8/4.2, see bug 68832.