[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Add Composite on treeitem of TreeViewer
|
Please see/read
-http://wiki.eclipse.org/Tables_And_Trees_And_NativeControls
-http://wiki.eclipse.org/JFaceSnippets
-http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/viewers/Snippet054NativeControlsInViewers.java?view=markup
-http://tom-eclipse-dev.blogspot.com/2007/01/what-items-are-visible-in-tabletree.html
Tom
Gaurav dubey schrieb:
Hi All,
I am currently working on SWT/JFace TreeViewer. I want to have a
composite with 2-3 buttons as a TreeItem (node) of TreeViewer instead of
text which is the default one displayed as TreeItem. I want to add
different event listeners
to these TreeItem buttons.
I tried to set Composite using the setData() method in TreeItem but it
doesn't seem to be working. Also I tried modifying ContentProvider and
LabelProvider of TreeViewer to add composite/button but the method does
getText() and getImage(). Can I override LabelProvider to display any UI
component instead of String?
Please guide me as to how I can achieve this.
Thanks in advance.
Regards,
Gaurav Dubey
--
B e s t S o l u t i o n . at
--------------------------------------------------------------------
Tom Schindl JFace-Committer
--------------------------------------------------------------------