Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Multiline TreeItems(Is it possible to create multilined TreeItems)
Multiline TreeItems [message #730842] Thu, 29 September 2011 06:45 Go to next message
Eclipse UserFriend
Hi all,

I am looking for a method to display TreeItems in a Tree-Widget with line wrapping and newlines in the text on multiple lines. I've searched the internet for some time and found some hacks for older SWT versions using PaintListeners and stuff like that.

Is that still the way to go, or is there a more elegant method with recent eclipse versions?

Thanks in advance
Regards
Re: Multiline TreeItems [message #730901 is a reply to message #730842] Thu, 29 September 2011 09:48 Go to previous message
Eclipse UserFriend
The snippet you've probably already seen (
http://git.eclipse.org/c/platform/eclipse.platform.swt.git/tree/examples/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet227.java
) is the only way to do this. There are a couple of related bug reports:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=154341
https://bugs.eclipse.org/bugs/show_bug.cgi?id=148039

Grant


On 9/29/2011 6:45 AM, Antoine Kaufmann wrote:
> Hi all,
>
> I am looking for a method to display TreeItems in a Tree-Widget with
> line wrapping and newlines in the text on multiple lines. I've searched
> the internet for some time and found some hacks for older SWT versions
> using PaintListeners and stuff like that.
>
> Is that still the way to go, or is there a more elegant method with
> recent eclipse versions?
>
> Thanks in advance
> Regards
Previous Topic:how to let users only input money number into text widget?
Next Topic:is it possible to calculate a list index from a mouse point
Goto Forum:
  


Current Time: Wed Jul 23 08:23:12 EDT 2025

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

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

Back to the top