Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT.RIGHT_TO_LEFT tree doing strange thing with non-alphanumeric characters
SWT.RIGHT_TO_LEFT tree doing strange thing with non-alphanumeric characters [message #1131263] Thu, 10 October 2013 07:05 Go to next message
Leonid Ripeynih is currently offline Leonid Ripeynih
Messages: 91
Registered: February 2012
Member
Hi!

I've encountered the following problem using SWT.RIGHT_TO_LEFT tree:
Suppose i have the following label for Item:
Some label

And everything is fine with it. But when I change it to
Some (label)

it becomes
(Some (label

And even more strange (for me Smile ) thing is when I change it to
Some (label)1

it displays same text again.

Non-alphabetic characteds (such as spaces) won't help with it.

I'm using SWT.RIGHT_TO_LEFT for tree in mapping component, so expanding tree from right to left is important, but changing label text is not desired.

Is there any way to work around it?

P.S. Platfrom I'm using is Windows 7/x64

[Updated on: Thu, 10 October 2013 07:06]

Report message to a moderator

Re: SWT.RIGHT_TO_LEFT tree doing strange thing with non-alphanumeric characters [message #1133216 is a reply to message #1131263] Fri, 11 October 2013 13:47 Go to previous message
Arun Thondapu is currently offline Arun Thondapu
Messages: 11
Registered: April 2011
Junior Member
SWT just uses the platform specific APIs to set the RIGHT_TO_LEFT orientation and the actual rendering of the text in LTR or RTL orientation is taken care of by the platform itself. So I'm afraid SWT cannot do anything here.
However, what you're observing here seems to be the appropriate behaviour for RTL text, please check this link for more details - http://stackoverflow.com/questions/5741522/brackets-displays-wrongly-for-right-to-left-display-style
I have tested this on Linux and found the exact same behaviour there too.
Previous Topic:SWT Browser GDK_IS_PIXBUF assertion failed
Next Topic:TreeViewer: getText before treeExpanded
Goto Forum:
  


Current Time: Thu Jul 24 16:17:43 EDT 2014

Powered by FUDForum. Page generated in 0.01564 seconds