[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[ews.eclipse.technology.rap] Re: TreeViewer questions

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