Bug 476797 - Provide an option to expand vertical ruler hover icons in the CDT editor (similar to JDT)
Summary: Provide an option to expand vertical ruler hover icons in the CDT editor (sim...
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 8.5   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: 9.1.0   Edit
Assignee: William Riley CLA
QA Contact: Anton Leherbauer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-07 09:19 EDT by William Riley CLA
Modified: 2021-05-14 15:21 EDT (History)
7 users (show)

See Also:


Attachments
Example of JDT ruler hovers with multiple markers (86.47 KB, image/jpeg)
2015-09-07 09:19 EDT, William Riley CLA
no flags Details
Example showing feature as implemented in CDT by Gerrit 68169 (38.79 KB, image/jpeg)
2016-08-03 06:26 EDT, William Riley CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description William Riley CLA 2015-09-07 09:19:55 EDT
Created attachment 256421 [details]
Example of JDT ruler hovers with multiple markers

The JDT editor provides an option to expand ruler icons on hover. This provides better interaction when there are multiple markers on a single source line as it allows for each one to be seen and selected separately. Additionally it always provides a toggle breakpoint option.

It would be nice if the editor in CDT could provide a similar feature. This could also be enhanced to provided separate toggles for different breakpoint types (e.g. Dynamic-printf)
Comment 1 Nathan Ridge CLA 2015-09-07 17:53:17 EDT
Note that bug 473577 improved the UX for multiple markers on a single line slightly, by having a click on the ruler be handled by the first marker that wants to handle it, instead of just by the top-most marker (and having the click do nothing if the top-most marker doesn't handle it).

That said, I agree that there is room for further improvement, and what you suggest here would be helpful.
Comment 2 William Riley CLA 2015-09-09 04:29:11 EDT
I plan on looking into this, hopefully reusing the JDT code as much as possible.
Comment 3 William Riley CLA 2016-03-08 20:45:20 EST
I've started looking at this and there are some changes needed from the JDT behaviour to accommodate CDT annotations. Currently looking just into a port providing the same function as JDT then I will look at enhancing for multiple breakpoint types.
Comment 4 Eclipse Genie CLA 2016-05-18 09:41:07 EDT
New Gerrit change created: https://git.eclipse.org/r/68169
Comment 5 William Riley CLA 2016-05-18 09:44:30 EDT
(In reply to Eclipse Genie from comment #4)
> New Gerrit change created: https://git.eclipse.org/r/68169

This patch-set contains an initial port of the JDT feature with some changes to improve the usability and fix a major bug I was seeing where clicking once would trigger 2 actions.

Feedback on how it works would be good, and it needs testing on Linux as I removed the fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=165533 as it was causing the bug mentioned above. I tested on Windows & Mac but I am having issues getting my Linux VM to load the target platform so haven't tested on Linux yet.
Comment 6 William Riley CLA 2016-07-28 10:26:47 EDT
Anyone going to get a chance to look at this?
Comment 7 Marc Khouzam CLA 2016-07-28 10:43:13 EDT
(In reply to William Riley from comment #6)
> Anyone going to get a chance to look at this?

I personally have to put my efforts on the GDB Console for the next couple of weeks.

Could you email the cdt-dev list with a screenshot and description of the feature to see if anyone can review it for 9.1?
Comment 8 Jonah Graham CLA 2016-08-02 17:18:14 EDT
At the CDT call today[1], we discussed and agreed to aim to make this the default for CDT 9.1.

[1] https://wiki.eclipse.org/CDT/calls/Aug2016
Comment 9 William Riley CLA 2016-08-03 06:26:04 EDT
Created attachment 263439 [details]
Example showing feature as implemented in CDT by Gerrit 68169

Added screenshot showing this feature as implemented in https://git.eclipse.org/r/68169
Comment 11 Jonah Graham CLA 2016-08-08 16:27:11 EDT
William,

Thank you for the submission. Gerrit 68169 (with CQ 11722) has been submitted.

Over to you to finalize the changing of the default (Comment 8) and add the N&N.

Thanks!
Jonah
Comment 12 Eclipse Genie CLA 2016-08-09 03:20:30 EDT
New Gerrit change created: https://git.eclipse.org/r/78334
Comment 13 William Riley CLA 2016-08-09 05:17:56 EDT
(In reply to Jonah Graham from comment #11)
> William,
> 
> Thank you for the submission. Gerrit 68169 (with CQ 11722) has been
> submitted.
> 
> Over to you to finalize the changing of the default (Comment 8) and add the
> N&N.
> 
> Thanks!
> Jonah

I've pushed Gerrit change (78334) to change the default & added to N&N (currently waiting moderation).
Comment 14 Marc Khouzam CLA 2016-08-09 07:13:31 EDT
Awesome!
Thanks for the contribution!
Comment 16 Jonah Graham CLA 2016-08-09 09:32:34 EDT
I have submitted the default change now too. Thanks William.