Bug 236698 - Simple HTML Rendering for Labels and Tooltips
Summary: Simple HTML Rendering for Labels and Tooltips
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Grant Gayed CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-11 13:50 EDT by Stuart Pond CLA
Modified: 2019-09-06 16:07 EDT (History)
1 user (show)

See Also:


Attachments
SWT snippet of an HTML tooltip (3.86 KB, text/plain)
2008-06-11 17:56 EDT, Stuart Pond CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Pond CLA 2008-06-11 13:50:52 EDT
Basically, mimic Java Swing's ability to render HTML in labels and tooltips by simply putting HTML <html> tag at the beginning of the text, then use any valid HTML in the remainder.

For threading reasons it is not always possible to embed the Swing bridge or browser component into a label or tooltip
Comment 1 Steve Northover CLA 2008-06-11 17:21:45 EDT
This has come up before and the answer has been, "Use the browser widget".  Grant, can you please find the duplicate?
Comment 2 Stuart Pond CLA 2008-06-11 17:31:24 EDT
I am sorry, but that seems very "heavyweight" for something that is suppose to be very lightweight that could be used with tooltips.  Also, does the browser get a prefered size based on the HTML string.

We tried using the browser widget and I am sorry but it is a sub-optimal solution at best.

Why is their pushback for something simple, lightweight and efficient?
Comment 3 Steve Northover CLA 2008-06-11 17:37:25 EDT
The "heavyweight" arguement was used before.  Do you have some statistics that show that memory usage is up or a benchmark that is slow?  

You tried using the browser and failed.  Why?  Was it preferred size or were there more things that were wrong?
Comment 4 Stuart Pond CLA 2008-06-11 17:56:09 EDT
Created attachment 104565 [details]
SWT snippet of an HTML tooltip
Comment 5 Stuart Pond CLA 2008-06-11 17:59:36 EDT
(In reply to comment #4)
> Created an attachment (id=104565) [details]
> SWT snippet of an HTML tooltip

This example was example of the approach to use the SWT browser widget as lightweight tooltip.

The aesthetic results were less than pleasing and was very klunky looking.

Comment 6 Steve Northover CLA 2008-06-12 13:03:27 EDT
Perhaps ui forms is what you are looking for?
Comment 7 Stuart Pond CLA 2008-06-12 14:03:42 EDT
We have used the UI Forms plugin for several of our Views and Editors. It is a very nice addition to the UI toolkit. However, in this particular case it is not what I am looking for in this situation.

The UI Forms packages is not an HTML renderer. It does have some HTML-like layout capabilities, but it does not support even close to an HTML set of keywords.

I think people use to developing in a Java Swing UI got very use to putting HTML labels into tooltips.

Are there any open source HTML renderers that Eclipse good leverage to provide this functionality?
Comment 8 Eclipse Webmaster CLA 2019-09-06 16:07:38 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.