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] Add extension point for sticky lines provider #2398

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Christopher-Hermann
Copy link
Contributor

First version of the extension points for sticky lines provider. Via the extension point it's possible to register an own provider for a editor instance.
There is some refactoring needed which will be done on separate PR.
This PR will be merged after the implementation of an initial proof-of-concept provider for Java, and potentially ABAP as well, to ensure a stable API.

@Christopher-Hermann Christopher-Hermann self-assigned this Oct 14, 2024
@Christopher-Hermann Christopher-Hermann marked this pull request as draft October 14, 2024 13:44
Christopher-Hermann added a commit to Christopher-Hermann/eclipse.platform.ui that referenced this pull request Oct 14, 2024
Move sticky lines adaptation to the growing sticky lines control into the central sticky scrolling handler. This change simplifies the sticky lines provider, making implementations for specific languages more straightforward and maintainable.

Preparation for eclipse-platform#2398
Christopher-Hermann added a commit to Christopher-Hermann/eclipse.platform.ui that referenced this pull request Oct 14, 2024
Move sticky lines adaptation to the growing sticky lines control into the central sticky scrolling handler. This change simplifies the sticky lines provider, making implementations for specific languages more straightforward and maintainable.

Preparation for eclipse-platform#2398
BeckerWdf pushed a commit to Christopher-Hermann/eclipse.platform.ui that referenced this pull request Oct 15, 2024
Move sticky lines adaptation to the growing sticky lines control into the central sticky scrolling handler. This change simplifies the sticky lines provider, making implementations for specific languages more straightforward and maintainable.

Preparation for eclipse-platform#2398
@Christopher-Hermann Christopher-Hermann force-pushed the stickyScrollingEnhancementPoint branch from 8139ade to a3c3ead Compare October 15, 2024 12:48
Christopher-Hermann added a commit to Christopher-Hermann/eclipse.platform.ui that referenced this pull request Oct 15, 2024
Move sticky lines adaptation to the growing sticky lines control into the central sticky scrolling handler. This change simplifies the sticky lines provider, making implementations for specific languages more straightforward and maintainable.

Preparation for eclipse-platform#2398
Christopher-Hermann added a commit to Christopher-Hermann/eclipse.platform.ui that referenced this pull request Oct 15, 2024
Move sticky lines adaptation to the growing sticky lines control into the central sticky scrolling handler. This change simplifies the sticky lines provider, making implementations for specific languages more straightforward and maintainable.

Preparation for eclipse-platform#2398
Christopher-Hermann added a commit to Christopher-Hermann/eclipse.platform.ui that referenced this pull request Oct 16, 2024
Move sticky lines adaptation to the growing sticky lines control into the central sticky scrolling handler. This change simplifies the sticky lines provider, making implementations for specific languages more straightforward and maintainable.

Preparation for eclipse-platform#2398
Christopher-Hermann added a commit to Christopher-Hermann/eclipse.platform.ui that referenced this pull request Oct 16, 2024
Move sticky lines adaptation to the growing sticky lines control into the central sticky scrolling handler. This change simplifies the sticky lines provider, making implementations for specific languages more straightforward and maintainable.

Preparation for eclipse-platform#2398
Christopher-Hermann added a commit to Christopher-Hermann/eclipse.platform.ui that referenced this pull request Oct 17, 2024
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 added a commit that referenced this pull request Oct 25, 2024
Move sticky lines adaptation to the growing sticky lines control into the central sticky scrolling handler. This change simplifies the sticky lines provider, making implementations for specific languages more straightforward and maintainable.

Preparation for #2398
Christopher-Hermann added a commit to Christopher-Hermann/eclipse.platform.ui that referenced this pull request Oct 25, 2024
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 added a commit to Christopher-Hermann/eclipse.platform.ui that referenced this pull request Oct 28, 2024
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 added a commit to Christopher-Hermann/eclipse.platform.ui that referenced this pull request Nov 4, 2024
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 added a commit that referenced this pull request Nov 4, 2024
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 added a commit to Christopher-Hermann/eclipse.platform.ui that referenced this pull request Dec 4, 2024
Use the source viewer instead of the text widget to calculate the sticky lines. The source viewer is the standard instance for source code operations in JDT and other editors.

Preparation for eclipse-platform#2398
Christopher-Hermann added a commit that referenced this pull request Dec 5, 2024
Use the source viewer instead of the text widget to calculate the sticky lines. The source viewer is the standard instance for source code operations in JDT and other editors.

Preparation for #2398
@Christopher-Hermann Christopher-Hermann force-pushed the stickyScrollingEnhancementPoint branch from a3c3ead to 62925b2 Compare December 6, 2024 07:38
Copy link
Contributor

github-actions bot commented Dec 6, 2024

Test Results

0 files   -  1 520  0 suites   - 1 520   0s ⏱️ - 1h 18m 57s
0 tests  -  7 734  0 ✅  -  7 506  0 💤  - 228  0 ❌ ±0 
0 runs   - 22 703  0 ✅  - 22 150  0 💤  - 553  0 ❌ ±0 

Results for commit b82b52b. ± Comparison against base commit 61cca8f.

♻️ This comment has been updated with latest results.

@Christopher-Hermann Christopher-Hermann force-pushed the stickyScrollingEnhancementPoint branch 4 times, most recently from a10305a to b3fbd6a Compare December 6, 2024 10:06
mai-tran-03 pushed a commit to mai-tran-03/eclipse.platform.ui that referenced this pull request Dec 10, 2024
Use the source viewer instead of the text widget to calculate the sticky lines. The source viewer is the standard instance for source code operations in JDT and other editors.

Preparation for eclipse-platform#2398
mai-tran-03 pushed a commit to mai-tran-03/eclipse.platform.ui that referenced this pull request Dec 10, 2024
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 force-pushed the stickyScrollingEnhancementPoint branch from b3fbd6a to 01da2da Compare December 13, 2024 10:35
@Christopher-Hermann Christopher-Hermann force-pushed the stickyScrollingEnhancementPoint branch 2 times, most recently from 784b867 to fa858ad Compare December 13, 2024 13:16
@Christopher-Hermann Christopher-Hermann changed the title [WIP] [StickyScrolling] Add extension point for sticky lines provider [StickyScrolling] Add extension point for sticky lines provider Dec 13, 2024
@Christopher-Hermann Christopher-Hermann marked this pull request as ready for review December 13, 2024 14:21
@Christopher-Hermann Christopher-Hermann marked this pull request as draft December 13, 2024 14:25
In order to implement editor/language specific sticky lines provider, a new extension point is introduced.
@Christopher-Hermann Christopher-Hermann force-pushed the stickyScrollingEnhancementPoint branch from fa858ad to b82b52b Compare December 19, 2024 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant