Multi-column TreeViewer Rendering Problems (possibly a bug?) [message #127078] |
Fri, 03 April 2009 08:54  |
Eclipse User |
|
|
|
Originally posted by: bjoern.bjoernfischer.de
This is a multi-part message in MIME format.
--------------010801050705040000040405
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
Hi everybody,
when trying to add icon support to a multi-column TreeViewer I
encountered some rendering problems. Therefore I coded a small example
showing an instance of a Person class with friendly Person objects as
children rows.
For the attaced screenshot I gave the first (tree) column an icon if the
first name of the person starts with the letter "A". The second column
has an icon if the last name of the person starts with the letter "H".
In the screenshot can be seen three problems:
1. If there is an icon in the second column, the label of the third (and
all possibly following) column(s) is not positioned correctly, in fact
it is moved to the right by the width of the icon.
2. If the last name (text for the second column) is missing as in the
last row of the example, the text of the third column is rendered at the
place of the second column.
3. If there is at least one icon in the first column, the lable texts
(all of them) should be moved to the right by the width of the icon.
This IMHO is a minor bug, but at least it is a difference between RAP
and RCP.
I also attached the source of the viewPart to reproduce this behaviour.
The RAP version used is 1.2 M6.
Can this be considered as a bug?
Regards,
Bj
|
|
|
Re: Multi-column TreeViewer Rendering Problems (possibly a bug?) [message #127175 is a reply to message #127078] |
Sat, 04 April 2009 06:48   |
Eclipse User |
|
|
|
Hi Björn,
it seems that you found a bug. Please file a bugzilla about issue 1 and
3. Issue 2 is a know bug:
262203: TreeViewer Columns do not show data properly
https://bugs.eclipse.org/bugs/show_bug.cgi?id=262203
Best,
Ivan
Björn Fischer wrote:
> Hi everybody,
> when trying to add icon support to a multi-column TreeViewer I
> encountered some rendering problems. Therefore I coded a small example
> showing an instance of a Person class with friendly Person objects as
> children rows.
>
> For the attaced screenshot I gave the first (tree) column an icon if the
> first name of the person starts with the letter "A". The second column
> has an icon if the last name of the person starts with the letter "H".
>
> In the screenshot can be seen three problems:
>
> 1. If there is an icon in the second column, the label of the third (and
> all possibly following) column(s) is not positioned correctly, in fact
> it is moved to the right by the width of the icon.
>
> 2. If the last name (text for the second column) is missing as in the
> last row of the example, the text of the third column is rendered at the
> place of the second column.
>
> 3. If there is at least one icon in the first column, the lable texts
> (all of them) should be moved to the right by the width of the icon.
> This IMHO is a minor bug, but at least it is a difference between RAP
> and RCP.
>
> I also attached the source of the viewPart to reproduce this behaviour.
> The RAP version used is 1.2 M6.
>
> Can this be considered as a bug?
>
> Regards,
> Björn
>
>
> ------------------------------------------------------------ ------------
>
|
|
|
Re: Multi-column TreeViewer Rendering Problems (possibly a bug?) [message #127284 is a reply to message #127175] |
Mon, 06 April 2009 04:33  |
Eclipse User |
|
|
|
Originally posted by: bjoern.bjoernfischer.de
Done. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=271277
Regards,
Björn
Ivan Furnadjiev schrieb:
> Hi Björn,
>
> it seems that you found a bug. Please file a bugzilla about issue 1 and
> 3. Issue 2 is a know bug:
> 262203: TreeViewer Columns do not show data properly
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=262203
>
> Best,
> Ivan
>
> Björn Fischer wrote:
>> Hi everybody,
>> when trying to add icon support to a multi-column TreeViewer I
>> encountered some rendering problems. Therefore I coded a small example
>> showing an instance of a Person class with friendly Person objects as
>> children rows.
>>
>> For the attaced screenshot I gave the first (tree) column an icon if the
>> first name of the person starts with the letter "A". The second column
>> has an icon if the last name of the person starts with the letter "H".
>>
>> In the screenshot can be seen three problems:
>>
>> 1. If there is an icon in the second column, the label of the third (and
>> all possibly following) column(s) is not positioned correctly, in fact
>> it is moved to the right by the width of the icon.
>>
>> 2. If the last name (text for the second column) is missing as in the
>> last row of the example, the text of the third column is rendered at the
>> place of the second column.
>>
>> 3. If there is at least one icon in the first column, the lable texts
>> (all of them) should be moved to the right by the width of the icon.
>> This IMHO is a minor bug, but at least it is a difference between RAP
>> and RCP.
>>
>> I also attached the source of the viewPart to reproduce this behaviour.
>> The RAP version used is 1.2 M6.
>>
>> Can this be considered as a bug?
>>
>> Regards,
>> Björn
>>
>> ------------------------------------------------------------ ------------
>>
|
|
|
Powered by
FUDForum. Page generated in 0.03831 seconds