[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Editing a column in a Tree

maybe only setting SWT.FULL_SELECTION? There are snippets in there showing Tree's in multi-edit mode.

-http://wiki.eclipse.org/JFaceSnippets#Snippet038TreeViewerInlinelEditingOldAPI
-http://wiki.eclipse.org/JFaceSnippets#Snippet026TreeViewerTabEditing (very fancy)


In fact you could also port the snippets deal with TableViewer without much effort to TreeViewer simply substitute Table through Tree.

-http://wiki.eclipse.org/JFaceSnippets#Snippet024TableViewerExploreNewAPI

Tom

Prameela schrieb:
Thanks a ton Tom! The link proved really fruitful.

However, I have a doubt. Is it not possible to edit any 'nth' column using a plain tree widget. I was trying to use a Tree(multi-column) and edit it. All links/download pointed to just editing the first column.

TreeViewer definitely provide much more functionality and I can achieve the editing without much effort. Just want to know what exactly did I miss while editing a a multi-column tree. Could someone point me to some link that gives more info about this?

/Prameela





Tom Schindl wrote:
There are plenty of them http://wiki.eclipse.org/JFaceSnippets

Tom

Prameela schrieb:
Hi All,

I want to edit a particular column in a Tree. It seems to be easy with TableTree but since it is a deprectaed class I have to use Tree.
All the code snippets that i downloaded from the net just allowed me to edit the first column. Although the TreeColumn does have a addSelectionListener() API, it doesnt seem to work. Maybe I have overlooked something?


Any links/pointers would be really helpful.

/Prameela







--
B e s t S o l u t i o n . at
--------------------------------------------------------------------
Tom Schindl                                          JFace-Committer
--------------------------------------------------------------------