Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Line Break in Marker Tooltip
Line Break in Marker Tooltip [message #307603] Sat, 26 August 2006 11:45 Go to next message
Eclipse UserFriend
Originally posted by: zelzer.mathi.uni-heidelberg.de

Hi,

I am trying to do some simple formatting with line breaks "\n" and
spaces for some text I want to display in my markers tooltip. I tried to
add a "\n" in the message for the marker but when the message is
displayed in the tooltip, the "\n" just disappeared, not leading to a
line break.

Is this kind of formating possible? Or even better, is it possible to
supply simple HTML for the markers tooltip?

Thanks in advance,

Sascha
Re: Line Break in Marker Tooltip [message #307642 is a reply to message #307603] Mon, 28 August 2006 09:15 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Sascha Zelzer wrote:

> Hi,
>
> I am trying to do some simple formatting with line breaks "\n" and
> spaces for some text I want to display in my markers tooltip. I tried
> to add a "\n" in the message for the marker but when the message is
> displayed in the tooltip, the "\n" just disappeared, not leading to a
> line break.
>
> Is this kind of formating possible?

No.

> Or even better, is it possible to supply simple HTML for the markers
> tooltip?

No.

Dani

>
> Thanks in advance,
>
> Sascha
Re: Line Break in Marker Tooltip [message #554639 is a reply to message #307642] Mon, 23 August 2010 19:38 Go to previous messageGo to next message
Bahar Sateli is currently offline Bahar SateliFriend
Messages: 19
Registered: May 2010
Location: Canada
Junior Member
So... is that it? "No"? Rolling Eyes

But I've seen multiple lines in markers tool tips. How are they made then?

Bahar
Re: Line Break in Marker Tooltip [message #1005458 is a reply to message #554639] Fri, 25 January 2013 14:21 Go to previous message
David Whiteman is currently offline David WhitemanFriend
Messages: 5
Registered: July 2009
Location: Research Triangle Park, N...
Junior Member
Here's an approach that worked for me:

blog.pdark.de/2009/12/26/swt-tree-and-tooltips/

I was able to use the wrap() method described in that post to format a string that when passed to setToolTipText() on a Control would do an intelligent word wrap. It also can handle \n characters. You have to include the commons-lang jar in your classpath in order to use this.


---
David Whiteman
Cisco Systems
Previous Topic:Reverting a Component?
Next Topic:How to monitor changes to properties managed by project PropertyPages?
Goto Forum:
  


Current Time: Sat Apr 20 03:26:20 GMT 2024

Powered by FUDForum. Page generated in 0.03803 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top