Skip to main content


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 15:37 Go to next message
Laurent Petit is currently offline Laurent PetitFriend
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 10:17 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
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 10:23 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
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 18:16 Go to previous messageGo to next message
Alexey Zhukov is currently offline Alexey ZhukovFriend
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 13:16 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
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:Problem with RAP Browser component and SSL
Next Topic:internationalization and single sourcing
Goto Forum:
  


Current Time: Thu Apr 18 16:10:42 GMT 2024

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

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

Back to the top