|
Re: Problem with TableViewer setAlignment on column [message #522988 is a reply to message #522986] |
Wed, 24 March 2010 16:55 |
Rüdiger Herrmann Messages: 581 Registered: July 2009 |
Senior Member |
|
|
Roland,
if I'm not entirely mistaken, this behaviour is intended. The rule of
thumb is, if it works in SWT/RCP, it should work the same in RWT/RAP.
Hence, if you can prove that SWT behaves differently, then please file a
bugzilla.
HTH
Rüdiger
--
Rüdiger Herrmann
http://eclipsesource.com
On 24.03.2010 17:47, Roland wrote:
> Hi,
>
> There is a problem with the TableViewer.
>
> I set the alignment of a TableColumn (column.setAlignment( SWT.CENTER );)
>
> This works when put some text in the cell. (cell.setText( "someText" );)
> But I put an image it the cell (cell.setImage( image );), the image will
> always displayed left.
>
> Is this a bug???
>
> to reproduce see rap.demo #controls #Table-Tab
>
> Roland
|
|
|
Re: Problem with TableViewer setAlignment on column [message #523114 is a reply to message #522988] |
Thu, 25 March 2010 07:49 |
rollo Messages: 117 Registered: July 2009 |
Senior Member |
|
|
Hi,
I have tested it in SWT and you're right. It shows the same behavior as
in RAP.
But the JavaDoc says:
Controls how text and *images* will be displayed in the receiver. The
argument should be one of LEFT, RIGHT or CENTER.
Strange.
Roland
Am 24.03.2010 17:55, schrieb Rüdiger Herrmann:
> Roland,
>
> if I'm not entirely mistaken, this behaviour is intended. The rule of
> thumb is, if it works in SWT/RCP, it should work the same in RWT/RAP.
> Hence, if you can prove that SWT behaves differently, then please file a
> bugzilla.
>
> HTH
> Rüdiger
|
|
|
Re: Problem with TableViewer setAlignment on column [message #523116 is a reply to message #523114] |
Thu, 25 March 2010 08:14 |
Rüdiger Herrmann Messages: 581 Registered: July 2009 |
Senior Member |
|
|
On 25.03.2010 08:49, Roland wrote:
> Hi,
>
> I have tested it in SWT and you're right. It shows the same behavior as
> in RAP.
>
> But the JavaDoc says:
>
> Controls how text and *images* will be displayed in the receiver. The
> argument should be one of LEFT, RIGHT or CENTER.
>
> Strange.
It may be that SWT behaves differently on different platforms. However,
it could also be a bug in the documentation. If you want to be sure,
search for a bug or newsgroup entry in SWT.
>
> Roland
>
> Am 24.03.2010 17:55, schrieb Rüdiger Herrmann:
>> Roland,
>>
>> if I'm not entirely mistaken, this behaviour is intended. The rule of
>> thumb is, if it works in SWT/RCP, it should work the same in RWT/RAP.
>> Hence, if you can prove that SWT behaves differently, then please file a
>> bugzilla.
>>
>> HTH
>> Rüdiger
--
Rüdiger Herrmann
http://eclipsesource.com
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04526 seconds