Bug 481911 - tooltip should support basic HTML formatting
Summary: tooltip should support basic HTML formatting
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: 3.1.0   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2015-11-11 03:56 EST by Yariv Amar CLA
Modified: 2016-11-03 06:27 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yariv Amar CLA 2015-11-11 03:56:28 EST
the tooltip expression should accept (and parse) some basic HTML elements like:
<b>, <i>, <li> etc.

For example i would like to have a tooltip expression like the following:

aql:'<b>self.type + '</b> ' + self.name +'<br/><i>' + self.description + '</i>'

Thanks.

BTW, i know that instead of '<br/>' i can use '/n' but, that's not enough.
Comment 1 Maxime Porhel CLA 2015-11-17 08:52:57 EST
Hi,

this looks like an interesting area to explore but we have no plans to work on it in the following weeks. 

That said this enhancement could move forward if you provide a fix for it (see the Contributor Guide) or you contact Obeo for sponsored work. 

Regards

Maxime
Comment 2 Maxime Porhel CLA 2015-11-17 09:04:05 EST
Note that labels and tooltip are currently implemented by  figures which inherits from IFigure and are configured using the IFigure.setFont(org.eclipse.swt.graphics.Font) method. It is not currently possible to have a label/tooltip with different Font/FontFormat in the same string. 

Lead for further analysis: org.eclipse.jface.viewers.StyledString is DTable and DTree editors.