Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Table with BiDi column
SWT Table with BiDi column [message #445693] Tue, 09 November 2004 16:32 Go to next message
Rodolfo M. Raya is currently offline Rodolfo M. RayaFriend
Messages: 18
Registered: July 2009
Junior Member
Hi,

I'm trying to create a table with BiDi support at column level. One
column contains text in Arabic and thus needs to show text from right to
left while all other columns should show text from left to right.

If I create the table with SWT.RIGHT_TO_LEFT style set, the whole table
is set to RTL and that's not what I want. If I create a TableColumn with
SWT.RIGHT_TO_LEFT style set, this setting is ignored.

Is there a way to properly show Arabic text in just one column of a table?

Thanks for any pointer.

Regards,
Rodolfo
Re: SWT Table with BiDi column [message #445745 is a reply to message #445693] Wed, 10 November 2004 14:42 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
I don't think it's possible using the native table control. Is there an
application on the desktop that you see doing this? That would give us a
hint.

"Rodolfo M. Raya" <rmraya@maxprograms.com> wrote in message
news:4190F131.4070401@maxprograms.com...
> Hi,
>
> I'm trying to create a table with BiDi support at column level. One
> column contains text in Arabic and thus needs to show text from right to
> left while all other columns should show text from left to right.
>
> If I create the table with SWT.RIGHT_TO_LEFT style set, the whole table
> is set to RTL and that's not what I want. If I create a TableColumn with
> SWT.RIGHT_TO_LEFT style set, this setting is ignored.
>
> Is there a way to properly show Arabic text in just one column of a table?
>
> Thanks for any pointer.
>
> Regards,
> Rodolfo
Re: SWT Table with BiDi column [message #445775 is a reply to message #445745] Wed, 10 November 2004 22:12 Go to previous messageGo to next message
Rodolfo M. Raya is currently offline Rodolfo M. RayaFriend
Messages: 18
Registered: July 2009
Junior Member
Steve Northover wrote:
> I don't think it's possible using the native table control. Is there an
> application on the desktop that you see doing this? That would give us a
> hint.

Hi Steve,

I have not seen this behavior in a table before, but that's because I
never use tables with text in Arabic (I don't understand Arabic).
Nevertheless, the application where I use the Table widget needs BiDi
support at TableColumn level.

Should I file a request for enhancement in bugzilla?

Regards,
Rodolfo
Re: SWT Table with BiDi column [message #445920 is a reply to message #445775] Thu, 11 November 2004 23:15 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
You could file the enhancement request but because the underlying operating
systems don't support it, we can't do much. Of course, you could always
right align the column but I'm not sure that would be enough. Why not ask
your users?

"Rodolfo M. Raya" <rmraya@maxprograms.com> wrote in message
news:cmu3j9$bhm$1@eclipse.org...
> Steve Northover wrote:
> > I don't think it's possible using the native table control. Is there an
> > application on the desktop that you see doing this? That would give us
a
> > hint.
>
> Hi Steve,
>
> I have not seen this behavior in a table before, but that's because I
> never use tables with text in Arabic (I don't understand Arabic).
> Nevertheless, the application where I use the Table widget needs BiDi
> support at TableColumn level.
>
> Should I file a request for enhancement in bugzilla?
>
> Regards,
> Rodolfo
Re: SWT Table with BiDi column [message #445930 is a reply to message #445920] Fri, 12 November 2004 12:27 Go to previous messageGo to next message
Rodolfo M. Raya is currently offline Rodolfo M. RayaFriend
Messages: 18
Registered: July 2009
Junior Member
Steve Northover wrote:
> You could file the enhancement request but because the underlying operating
> systems don't support it, we can't do much. Of course, you could always
> right align the column but I'm not sure that would be enough. Why not ask
> your users?

Hi,

Our users were the ones that complained about the Arabic column being
wrong in the table. Right aligning the text is not enough for two
reasons: the ellipsis shown when the text excedes column width is in
the wrong side and the text is not properly displayed because the BiDI
algorithm is not applied.

I'll take a look at SWT code, but I doubt I can do much.

Thanks,
Rodolfo
Re: SWT Table with BiDi column [message #445931 is a reply to message #445930] Fri, 12 November 2004 13:55 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
I kind of knew that right aligning wouldn't cut it.

"Rodolfo M. Raya" <rmraya@maxprograms.com> wrote in message
news:4194AC47.9080206@maxprograms.com...
> Steve Northover wrote:
> > You could file the enhancement request but because the underlying
operating
> > systems don't support it, we can't do much. Of course, you could always
> > right align the column but I'm not sure that would be enough. Why not
ask
> > your users?
>
> Hi,
>
> Our users were the ones that complained about the Arabic column being
> wrong in the table. Right aligning the text is not enough for two
> reasons: the ellipsis shown when the text excedes column width is in
> the wrong side and the text is not properly displayed because the BiDI
> algorithm is not applied.
>
> I'll take a look at SWT code, but I doubt I can do much.
>
> Thanks,
> Rodolfo
Previous Topic:Eclipse always makes a full rebuild after saving a file
Next Topic:How to tell if a drive is local or remote in Java ???
Goto Forum:
  


Current Time: Mon Oct 26 11:15:33 GMT 2020

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

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

Back to the top