-
Notifications
You must be signed in to change notification settings - Fork 93
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
Add styling enhancements to signatures (JavaElementLinks) in Javadoc. Fixes #1073 #1074
Conversation
Is this one still WIP as the title says? I guess so as it's not building and test are not passing. This is the minimum to be done before the patch can be considered for review. |
f5c90e6
to
3665d0a
Compare
Failing tests are fixed now. This PR is labeled WIP since the nature of my changes (enhancements) is such that I would first like to get some feedback from other person / people on current prototype before requesting actual merge. |
3665d0a
to
fedf78e
Compare
List of enhancements:Formatting enhancements:
Wrapping enhancements:
Type parameters references coloring enhancements:
Type parameters (nesting) levels coloring enhancements:
To notice / consider / think aboutThings that I would like to point out to have somebody else to notice & think about:
Thank you in advance |
b9c3c8f
to
590a86f
Compare
590a86f
to
8b1bb92
Compare
I don't have access to MacOS so I can't test it on that platform. So if there's anyone willing to do that, it would be greatly appreciated. For Linux, I am testing on native Ubuntu 22.04.3 LTS. After fully implementing required behavior of added GUI widgets on Windows, it all seems to work exactly the same also on Linux ... to my surprise, since I expected SWT may behave slightly different when it comes to when and which events are dispatched. |
bfc5b8f
to
3970cc2
Compare
cd7440f
to
c6c89cc
Compare
1c94ede
to
0dcc1cd
Compare
@akurtakov do you by chance have any feedback / opinion about the prototype ? |
I like the idea. Have you also considered type annotations in signatures? This would be particularly interesting in the context of null annotations where implicit annotations (from |
I tried to make the method name stand out the most, so I gave it Btw if anyone wants to play with the styling, I'm attaching 2 javadoc view browser content examples (screenshots above). Open in browser and use it's DevTools (F12) to tweak styling on-the-fly. Tip: disable
Will address soon |
Nope. Also I'm not sure what exactly you have in mind. @stephan-herrmann Could you please describe your idea little bit more ? |
Rebased onto master + changed superbold text to standard bold.
Toggle menu item added (for now added as 2nd commit, most probably will squash later). When disabled, no changes are done to generated HTML content (tags), although CSS prepended to generated HTML does contain enhancements segement that is however not used. Or did you @jukzi mean feature-flag instead ? |
…#1073) Also fix unnecessary triggering/calling of enhancementsReconfiguredTask.
Hi @RedeemerSK The new design is much simpler, thanks. I agree that you had some cool UI/UX hacks and perhaps they can be used for something in the future. With the latest code, I have a few comments:
The test errors in the latest build after rebasing are of no consequence as some Java 22 constants have been added but the I-build hasn't caught up yet.
Looking at other arrows, you are correct.
Thanks.
Great.
I'll keep an eye out for it. This may be a problem we solve after the merge if it isn't a one-off in my set-up. |
@jjohnstn Shall I squash the commits as a preparation for merge then ? (not sure what the git hsitory preference / merge workflow here is) |
@RedeemerSK No need to squash. I do that when I merge. The test failure is a known flaky test. |
@RedeemerSK Do you want to write a N&N entry and submit a PR to www.eclipse.org-eclipse or would you like me to do it? Try and make it brief with an example. |
Will try soon |
@jjohnstn while preparing N&N entry I found 2 (lets call them) corner cases when types parameters coloring was not working as expected.
After fix I prepared a fix ... is it fine to not make a new issue for it ? I would probably just create new branch (e.g. "issue_1073_fix") with fix commit and create PR like that if that's fine. Thanks for reply |
Yes, please. In the commit message please refer to the original issue and/or this PR. |
…dt#1074) Missing coloring for class / interface from other compilation unit. Applied coloring to labels outside of diamond brackets.
Thanks @iloveeclipse for quick reply. PR created #1296 |
@jjohnstn here it is: eclipse-platform/www.eclipse.org-eclipse#145 |
What it does
Adds various enhancements to styling / formatting of signatures in Javadoc presentation (HTML-based) views:
Examples:
Default enhancements:
When hovered on styling button
Defaults for colors:
Changing settings example:
See Eclipse JDT forums topic I created to communicate goals, approach, decisions taken and progress.
How to test
At this stage of WIP prototype:
Have Javadoc for various Java source code elements displayed in both Javadoc hover (viewer) and Javadoc view. Interact with new styling menu button (added to toolbars) to form assumptions about what new visual items do & see if things then behave as one expects them to behave.
Author checklist
Changes are currently WIP and thus at this stage not meant for thorough code-review, but rather for other people to be able to try them and provide feedback & future code-reviewer to have a look at how changes are implemented.