Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » TreeViewer questions
TreeViewer questions [message #485000] Thu, 10 September 2009 08:39 Go to next message
Thomas Haskes is currently offline Thomas HaskesFriend
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 Go to previous message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
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
Previous Topic:Failed to setup RAP application Cluster
Next Topic:Getting Context Parameter from ServletContext
Goto Forum:
  


Current Time: Sat Apr 27 04:44:42 GMT 2024

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

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

Back to the top