Skip to content

Add support for line background to sticky scrolling#3844

Open
wahlbrink wants to merge 1 commit intoeclipse-platform:masterfrom
wahlbrink:stickyscroll-linebackground
Open

Add support for line background to sticky scrolling#3844
wahlbrink wants to merge 1 commit intoeclipse-platform:masterfrom
wahlbrink:stickyscroll-linebackground

Conversation

@wahlbrink
Copy link
Copy Markdown
Contributor

Some text editors, like EGit's unified diff viewer, uses line background to style the editor's text. This change adds support to specify the line background of sticky lines too, so that they can be styled like in the editor.

UnifiedDiffEditor-StickyLines

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 31, 2026

Test Results

   852 files  ±0     852 suites  ±0   53m 7s ⏱️ - 2m 20s
 7 890 tests ±0   7 647 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 172 runs  ±0  19 516 ✅ ±0  656 💤 ±0  0 ❌ ±0 

Results for commit 12f1ef1. ± Comparison against base commit 308c192.

♻️ This comment has been updated with latest results.

@wahlbrink wahlbrink force-pushed the stickyscroll-linebackground branch from 35bb7ad to e4489cf Compare April 1, 2026 10:50
Copy link
Copy Markdown
Contributor

@Christopher-Hermann Christopher-Hermann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coding looks good, thanks. But I guess you need to update the version in the manifest org.eclipse.ui.editors to 3.23.0 since the interface has changed

@wahlbrink
Copy link
Copy Markdown
Contributor Author

Coding looks good, thanks. But I guess you need to update the version in the manifest org.eclipse.ui.editors to 3.23.0 since the interface has changed

In 2026-03/4.39 the version of org.eclipse.ui.editors was 3.21.0, so I think 3.22 is correct?

The APITools-check criticizes that an method was added to an interface (and wants to increment the major version -> 4.x). Does this rule also apply to added default methods?
If yes, I have to move the method to a new interface IStickyLineExtension.

@iloveeclipse
Copy link
Copy Markdown
Member

iloveeclipse commented Apr 1, 2026

In 2026-03/4.39 the version of org.eclipse.ui.editors was 3.21.0, so I think 3.22 is correct?

Yes.

You can add default methods in interface, no major bump is needed, but please "mute" the error in the IDE by adding API filter (and add the changed filter to the PR).

@merks
Copy link
Copy Markdown
Contributor

merks commented Apr 1, 2026

If yes, I have to move the method to a new interface IStickyLineExtension.

It’s also permissible to create a commented filter for such an error(using a quickfix in the IDE). I’ve not looked in detail at the changes. To me that seems better, but it’s good to get a second opinion. Not sure who.

@iloveeclipse

do you have an opinion or know whom best to ask?

@merks
Copy link
Copy Markdown
Contributor

merks commented Apr 1, 2026

I was slower on my iPhone. It looks like @iloveeclipse and I agree on a filter. Thanks for tackling this issue!

@iloveeclipse
Copy link
Copy Markdown
Member

do you have an opinion or know whom best to ask?

I believe I've answered already but you've missed my comment?

@merks
Copy link
Copy Markdown
Contributor

merks commented Apr 1, 2026

you've missed my comment?

I think we need a synchronized block around the comment authoring method. 🤪

Some text editors uses line background to style the editor's text.
This change adds support to specify the line background of sticky lines
too, so that they can be styled like in the editor.
@wahlbrink wahlbrink force-pushed the stickyscroll-linebackground branch from e4489cf to 12f1ef1 Compare April 1, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants