Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10:45 Go to next message
Antoine Kaufmann is currently offline Antoine Kaufmann
Messages: 2
Registered: September 2011
Junior Member
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 13:48 Go to previous message
Grant Gayed is currently offline Grant Gayed
Messages: 2151
Registered: July 2009
Senior Member
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:Table: set "focused" row
Goto Forum:
  


Current Time: Tue Oct 21 03:52:21 GMT 2014

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

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