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
Abstract Text Editor: don't change StyledText by CSS. #1036
Conversation
We don't use Gerrit. So we don't need a Change-Id |
...es/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java
Show resolved
Hide resolved
Test Results 900 files ±0 900 suites ±0 1h 9m 16s ⏱️ + 25m 10s For more details on these failures and errors, see this check. Results for commit c7a090b. ± Comparison against base commit 6854743. ♻️ This comment has been updated with latest results. |
This feature has already been used in: |
@BeckerWdf what is the status here with the review? Did you test the change? |
@DenisUngemach will update his PR. I then will do a manual test. |
In princple, this works well. But we were wondering whether disabling CSS completely is the way to go. The preferences only deal with foreground + background colors, a CSS might do more than just that. In theory that is - in practice, the CSS found in Platform only deals with foreground + background colors as well. So we are probably safe here and if there are no objections we can start with this and wait for feedback. If needed, we could maybe later introduce a more fine-granular E4 property, such as:
However, your alternative PR #1349 also has an additional condition That might be useful to add as a safeguard in case |
I don't think the extra check is necessary.
As for the colors of the syntax highligthing, we manipulate the preference values directly, so we should be ok. |
...es/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/AbstractTextEditor.java
Show resolved
Hide resolved
Fix for #869 Change-Id: Ib739afdc301c4e37dcbbe37ef063ed32cb7f53d7
I did a manual test on macOS. |
GH says, you still require changes @BeckerWdf ? |
Let's wait for the build.. |
We (should) always wait for the build. I wanted to know if you still require changes in this PR? @DenisUngemach could finish it in this case. |
Are version number increases necessary for this change? |
No, the build would fails if version increases are necesarry. I did not check if the test errors relate to this change. |
So has the version number already been increased?
The seem to be unrelated to me. |
Test failures are not related and already reported in #1351 |
Cool, thanks @DenisUngemach and @BeckerWdf |
You're welcome. Actually my first idea was to create a custom css configuration: "CSS support for custom widgets"for the AbstractTextEditor and set there the color configuration. But this didn't work that well because somewhere in the compatibility handler css class and css id will be defined: And i only wanted to write the css class. Is this css ID writing justified? Maybe these base layers should override css class, but i think the css ID is over the top. Best regards, |
Fix for #869
Change-Id: Ib739afdc301c4e37dcbbe37ef063ed32cb7f53d7