Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Hyperlinks in tree node text?
Hyperlinks in tree node text? [message #649412] Wed, 19 January 2011 07:30 Go to next message
Eclipse UserFriend
Originally posted by:

I would like to have a tree such that the text of each node in the tree may
contain one (or more) hyperlinks on which I can process select/click events.
So I guess the question is can the text of a node be represented or
displayed as HTML somehow or at least in some rich text format that looks
like it contains hyperlinks? I am new to SWT and looking at the limitations
of TreeItem I couldn't see how this could be done.



(Lose your mind before emailing me)
Re: Hyperlinks in tree node text? [message #649867 is a reply to message #649412] Thu, 20 January 2011 19:18 Go to previous message
Lakshmi P ShanmugamFriend
Messages: 277
Registered: July 2009
Location: India
Senior Member

You cannot set hyperlinks in the TreeItem's text.
But, you can try to do this by setting TreeEditors to the TreeItems with Link widget as the editor control. You can set text with hyperlinks to the Link widget. And then listen to the Selection events on the Link widget to be notified when user clicks the hyperlinks.
For examples of TableEditor and TreeEditor, please see -->


Lakshmi P Shanmugam

[Updated on: Thu, 20 January 2011 19:18]

Report message to a moderator

Previous Topic:Measuring text
Next Topic:SashForm children width
Goto Forum:

Current Time: Thu Mar 04 17:02:52 GMT 2021

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

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

Back to the top