Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[StickyScrolling] Move text and style calculation to StickyLine #2412

Conversation

Christopher-Hermann
Copy link
Contributor

Move the text and style calculation to the StickyLine itself in order to enable the sticky line provider to overwrite the default behavior. This is needed to apply custom texts or custom styles for the sticky lines.

Preparation for #2398

@Christopher-Hermann
Copy link
Contributor Author

Depends on #2399

@Christopher-Hermann Christopher-Hermann self-assigned this Oct 17, 2024
Copy link
Contributor

github-actions bot commented Oct 17, 2024

Test Results

 1 821 files  ±0   1 821 suites  ±0   1h 51m 44s ⏱️ + 3m 14s
 7 724 tests ±0   7 496 ✅ +1  228 💤 ±0  0 ❌  - 1 
24 333 runs  ±0  23 586 ✅ +1  747 💤 ±0  0 ❌  - 1 

Results for commit b5f78e5. ± Comparison against base commit 56115fc.

This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.
org.eclipse.ui.internal.texteditor.stickyscroll.StickyScrollingControlTest ‑ limitStickyLinesToTextWidgetHeight
org.eclipse.ui.internal.texteditor.stickyscroll.StickyScrollingControlTest ‑ testLimitStickyLinesToTextWidgetHeight

♻️ This comment has been updated with latest results.

@Christopher-Hermann Christopher-Hermann force-pushed the stickyScrollingRef2 branch 2 times, most recently from 6e9cb77 to 957a3de Compare October 28, 2024 13:26
@Christopher-Hermann
Copy link
Contributor Author

@tobiasmelcher Maybe you can have a look. I implemented your idea from the POC via the new IStickyLine interface

Copy link
Contributor

@tobiasmelcher tobiasmelcher left a comment

Choose a reason for hiding this comment

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

thanks a lot Christopher for taking care of this improvement.

Move the text and style calculation to the StickyLine itself in order to
enable the sticky line provider to overwrite the default behavior. This
is needed to apply custom texts or custom styles for the sticky lines.

Preparation for eclipse-platform#2398
@Christopher-Hermann Christopher-Hermann merged commit 9474c95 into eclipse-platform:master Nov 4, 2024
17 checks passed
@Christopher-Hermann Christopher-Hermann deleted the stickyScrollingRef2 branch November 4, 2024 09:03
@BeckerWdf BeckerWdf added this to the 4.34 M3 milestone Nov 4, 2024
@iloveeclipse
Copy link
Member

This PR causes regression => #2496

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