TreeViewer questions [message #485000] |
Thu, 10 September 2009 08:39 |
Thomas Haskes Messages: 147 Registered: July 2009 |
Senior Member |
|
|
Hi all,
I'm using a Treeviewer with 7 columns in my app. First, I want the
lines to be visible, but TreeViewer#setLinesVisible has not effect. I
found the Bug #232406 that says lines are always visible, I'm
experiencing the exact opposite here.
Second, I want some Columns to be aligned centered, and other to be
aligned right. I'm using TreeviewerColumns and set the Style using the
constructor parameter SWT.CENTER and SWT.RIGHT, respectively.
This works for the header of the columns, but not for the columns
themselves. Then I used TreeViewerColumn#getColumn and the
TreeColumn#setAlignment(SWT.CENTER) (and SWT.RIGHT), but this has no
effect, either.
How do I get the alignment working and the lines to be visible?
Greets,
Tom
|
|
|
Re: TreeViewer questions [message #485037 is a reply to message #485000] |
Thu, 10 September 2009 10:35 |
Benjamin Muskalla Messages: 338 Registered: July 2009 |
Senior Member |
|
|
Hi Thomas,
as discussed in bug 232406 the tree lines are currently not implemented.
There is already a patch attached you could try out. We will see if the
patch is something we can integrate in 1.3.
Regarding the alignment of columns: see this bug 258090
[Tree] Alignment for columns is broken
https://bugs.eclipse.org/bugs/show_bug.cgi?id=258090
Regards,
Ben
Thomas Haskes wrote:
> Hi all,
>
> I'm using a Treeviewer with 7 columns in my app. First, I want the
> lines to be visible, but TreeViewer#setLinesVisible has not effect. I
> found the Bug #232406 that says lines are always visible, I'm
> experiencing the exact opposite here.
>
> Second, I want some Columns to be aligned centered, and other to be
> aligned right. I'm using TreeviewerColumns and set the Style using the
> constructor parameter SWT.CENTER and SWT.RIGHT, respectively.
>
> This works for the header of the columns, but not for the columns
> themselves. Then I used TreeViewerColumn#getColumn and the
> TreeColumn#setAlignment(SWT.CENTER) (and SWT.RIGHT), but this has no
> effect, either.
>
> How do I get the alignment working and the lines to be visible?
>
> Greets,
>
> Tom
|
|
|
Powered by
FUDForum. Page generated in 0.02546 seconds