Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » StyledCellLabelProvider right aligned text
StyledCellLabelProvider right aligned text [message #727462] Wed, 21 September 2011 11:21 Go to next message
Thomas Singer is currently offline Thomas SingerFriend
Messages: 75
Registered: July 2009
Member
How to make a StyledCellLabelProvider draw right-aligned text? For normal ColumnLabelProviders it is sufficient to initialize the belonging TableViewerColumn's style with SWT.RIGHT. But if the viewerColumn a StyledCellLabelProvider is registered, it ignores this style.

Thanks in advance.
Re: StyledCellLabelProvider right aligned text [message #727482 is a reply to message #727462] Wed, 21 September 2011 12:23 Go to previous messageGo to next message
Vijay RajFriend
Messages: 608
Registered: July 2009
Senior Member
This is a jface related question,but since the solution may b a simple one will resolve it here,but if the problem continues please post your further queries to Jface forum.

Try setting SWT.RIGHT_TO_LEFT


---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay

[Updated on: Wed, 21 September 2011 12:42]

Report message to a moderator

Re: StyledCellLabelProvider right aligned text [message #727500 is a reply to message #727482] Wed, 21 September 2011 13:19 Go to previous message
Thomas Singer is currently offline Thomas SingerFriend
Messages: 75
Registered: July 2009
Member
Quote:
This is a jface related question,but since the solution may b a simple one will resolve it here,but if the problem continues please post your further queries to Jface forum.

Done. Looks like a JFace bug. Sad

Quote:
Try setting SWT.RIGHT_TO_LEFT

Just for the records: it does not work.
Re: StyledCellLabelProvider right aligned text [message #727515 is a reply to message #727462] Wed, 21 September 2011 12:39 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Answered in jface-newsgroup where the thread really belongs to.

Tom

Am 21.09.11 13:21, schrieb Thomas Singer:
> How to make a StyledCellLabelProvider draw right-aligned text? For
> normal ColumnLabelProviders it is sufficient to initialize the belonging
> TableViewerColumn's style with SWT.RIGHT. But if the viewerColumn a
> StyledCellLabelProvider is registered, it ignores this style.
>
> Thanks in advance.
Previous Topic:ProgressMonitorDialog during viewer.refresh()
Next Topic:Rotating widgets
Goto Forum:
  


Current Time: Tue Apr 23 17:58:14 GMT 2024

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

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

Back to the top