Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » TreeViewer with columns
TreeViewer with columns [message #501440] Wed, 02 December 2009 11:11 Go to next message
T. Wilhelm is currently offline T. WilhelmFriend
Messages: 129
Registered: July 2009
Senior Member
Hey all,

i have a Treeviewer with 3 columns and have some questions:
For My TreeViewer i use a StyledCellLabelProvider and now i have the problem that i cannot set the Alignment of my columns. How can i do that?
And how can i provide a tooltip for each cell? Also the cells in the 2nd and 3rd column?
Thanks a lot,
Thomas
Re: TreeViewer with columns [message #501444 is a reply to message #501440] Wed, 02 December 2009 11:18 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
T. Wilhelm schrieb:
> Hey all,
>
> i have a Treeviewer with 3 columns and have some questions:
> For My TreeViewer i use a StyledCellLabelProvider and now i have the
> problem that i cannot set the Alignment of my columns. How can i do that?

I don't have the code here and don't remember it offhand but I guess
that the drawing code is not checking for the alignment. So if setting
setting the column-alignment is not working I'd say you should file a
feature request.

> And how can i provide a tooltip for each cell? Also the cells in the 2nd
> and 3rd column?

ColumnViewerToolTipSupport.enabledFor() and implement
CellLabelProvider#getToolTipText()? Don't forget to create your
TreeViewer with SWT.FULL_SELECTION else the SWT-Events can't be
connected to a Cell.

Tom
Previous Topic:Annotation Model Usage
Next Topic:Problem using other than arrow keys for navigating TreeViewer
Goto Forum:
  


Current Time: Wed Apr 24 17:51:19 GMT 2024

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

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

Back to the top