Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 498493 - Show breakpoints in overview ruler by default
Summary: Show breakpoints in overview ruler by default
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.7   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 4.7 M1   Edit
Assignee: Andrey Loskutov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 498469
  Show dependency tree
 
Reported: 2016-07-26 09:39 EDT by Andrey Loskutov CLA
Modified: 2016-08-01 04:05 EDT (History)
2 users (show)

See Also:


Attachments
Breakpoint and Overview Marker line location (30.05 KB, image/jpeg)
2016-07-26 20:20 EDT, Sarika Sinha CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Loskutov CLA 2016-07-26 09:39:05 EDT
Currently breakpoints are not shown in overview ruler by default. This was done via bug 67620, and by all the respect to the original reporter: he isn't using Eclipse anymore :-).

I would like to revert change coming from bug 67620, breakpoints should be used in overview rules by default. The original rationale was that they can be mixed with TODO's.

Rationale for reverting: 

1) breakpoints are most useful "landmarks" in the code, because they indicate the "hot" places with the most attention from the developer. From the usability point of view it is strange not to show most interesting places in the code by default in the overview.
2) The colors for tasks and breakpoints are significantly different, so only very limited number of users with very strong color blindness will be affected (but they will also have difficulties to distinguish between warnings/errors etc marker annotations anyway).
3) We violated the original request from bug 67620 by showing "INFO" markers in the overview ruler by default. Even worse: "INFO" problems use *exact* same color as tasks. Try to open /org.eclipse.jface.text/src/org/eclipse/jface/text/TextViewer.java and find there a task (there is one).

I have a trivial patch.
Comment 1 Eclipse Genie CLA 2016-07-26 09:41:50 EDT
New Gerrit change created: https://git.eclipse.org/r/77907
Comment 2 Eclipse Genie CLA 2016-07-26 09:41:52 EDT
New Gerrit change created: https://git.eclipse.org/r/77906
Comment 3 Markus Keller CLA 2016-07-26 12:38:57 EDT
+1, makes sense.

I also agree that info markers have a bad color; I'll comment on that in bug 498497.
Comment 4 Sarika Sinha CLA 2016-07-26 20:18:51 EDT
(In reply to Eclipse Genie from comment #1)
> New Gerrit change created: https://git.eclipse.org/r/77907

Not required as we have already increased it for 4.7

(In reply to Eclipse Genie from comment #2)
> New Gerrit change created: https://git.eclipse.org/r/77906
Patch looks fine, but a general problem I see for Overview markers is that when editor is not maximized, the markers and the real line lumbers are not at the same location. I have attached a snapshot. Breakpoint marker is placed much before the actual line number. It really looks bad to see a breakpoint at a different location and the marker at a different location.
Comment 5 Sarika Sinha CLA 2016-07-26 20:20:21 EDT
Created attachment 263325 [details]
Breakpoint and Overview Marker line location
Comment 6 Andrey Loskutov CLA 2016-07-27 00:37:21 EDT
(In reply to Sarika Sinha from comment #4)
> (In reply to Eclipse Genie from comment #2)
> > New Gerrit change created: https://git.eclipse.org/r/77906
> Patch looks fine, but a general problem I see for Overview markers is that
> when editor is not maximized, the markers and the real line lumbers are not
> at the same location. I have attached a snapshot. Breakpoint marker is
> placed much before the actual line number. It really looks bad to see a
> breakpoint at a different location and the marker at a different location.

I have never heard complains about this - all markers are shown in the same way in the overview ruler, not only breakpoints. The overview ruler is never meant to match 1:1 line position, it is for navigation only. During debugging one see the current debug line highlighted anyway.
Comment 7 Markus Keller CLA 2016-07-27 08:28:16 EDT
The position in the overview ruler is fine.

As long as the document height doesn't exceed the height of the editor area, the position in the overview ruler is next to the affected line (like in the left/vertical ruler).

When the document is longer, the total scroll bar height and the overview ruler both stand for the total document height. In this state, the location of an annotation in the overview ruler no longer matches the actual document lines, but it matches the position in the whole scroll bar.

Scroll bars traditionally show a thumb whose height indicates the percentage of the document that is actually visible. As a consequence, the position of the annotation relative to the thumb shows where in the visible editor viewport the annotation can be found.
Comment 9 Sarika Sinha CLA 2016-07-28 00:50:12 EDT
Delivered to master.

Thanks Andrey.
Comment 10 Sarika Sinha CLA 2016-08-01 04:05:10 EDT
Verified using
Eclipse SDK
Version: Oxygen (4.7)
Build id: I20160731-2000
OS: Windows 7, v.6.1, x86_64 / win32