Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » SWT Tree: Multi-line label
SWT Tree: Multi-line label [message #507244] Tue, 12 January 2010 10:37 Go to next message
Laurent Petit is currently offline Laurent Petit
Messages: 35
Registered: July 2009
Member
Hello,

With SWT, when one sets as text for a label of a tree a String with newlines in it (e.g. "This is\na multiline\nlabel"), the label is displayed on multiple lines.
This is an important property I would like to keep in the RAP version of my RCP application, but somehow I'm unable to manage to make it work. It's as if the newline were just dismissed by the tree
widget.

Any idea ?

Thanks a lot in advance,

--
Laurent
Re: SWT Tree: Multi-line label [message #507386 is a reply to message #507244] Wed, 13 January 2010 05:17 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger Herrmann
Messages: 563
Registered: July 2009
Senior Member
Laurent,

I am sorry to say so but this is currently not possible with RAP. The
client-side Tree implementation does not support multi-line items.
Feel free to file an enhancement request. However, changes are low that
we can implement this in the near future because of the limitations of
the client-side Tree implementation.

Regards
Rüdiger
--
Rüdiger Herrmann
http://eclipsesource.com

On 12.01.2010 16:37, Laurent Petit wrote:
> Hello,
>
> With SWT, when one sets as text for a label of a tree a String with
> newlines in it (e.g. "This is\na multiline\nlabel"), the label is
> displayed on multiple lines.
> This is an important property I would like to keep in the RAP version of
> my RCP application, but somehow I'm unable to manage to make it work.
> It's as if the newline were just dismissed by the tree widget.
>
> Any idea ?
>
> Thanks a lot in advance,
>
Re: SWT Tree: Multi-line label [message #507388 is a reply to message #507386] Wed, 13 January 2010 05:23 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5238
Registered: July 2009
Senior Member
On SWT this multiline behavior is not consistent on all plaforms. The
only cross platfrom solution is to use owner draw.

Tom

Am 13.01.10 11:17, schrieb Rüdiger Herrmann:
> Laurent,
>
> I am sorry to say so but this is currently not possible with RAP. The
> client-side Tree implementation does not support multi-line items.
> Feel free to file an enhancement request. However, changes are low that
> we can implement this in the near future because of the limitations of
> the client-side Tree implementation.
>
> Regards
> Rüdiger
Re: SWT Tree: Multi-line label [message #1036715 is a reply to message #507244] Mon, 08 April 2013 14:16 Go to previous messageGo to next message
Alexey Zhukov is currently offline Alexey Zhukov
Messages: 1
Registered: April 2013
Junior Member
What about multiline in TreeItem now? (In TableItem work tag <br/> to wrap text)
Re: SWT Tree: Multi-line label [message #1037369 is a reply to message #1036715] Tue, 09 April 2013 09:16 Go to previous message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1775
Registered: July 2009
Senior Member
Hi Alexey,
Yes... if you enable markup support for Tree this should work. You could
specify custom item height as well.
Best,
Ivan

On 4/9/2013 4:05 PM, Alexey Zhukov wrote:
> What about multiline in TreeItem now? (In TableItem work tag <br/> to
> wrap text)

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Servlet Filter extension point not instantiated.
Next Topic:RWT standalone, css theming wont work
Goto Forum:
  


Current Time: Thu Jul 24 09:13:45 EDT 2014

Powered by FUDForum. Page generated in 0.01955 seconds