Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Hyperlinks in tree node text?
Hyperlinks in tree node text? [message #649412] Wed, 19 January 2011 02:30 Go to next message
Eclipse UserFriend
Originally posted by: jarrick.large.com

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.

Regards,

Jarrick

------------------------------------
Jarrick.Chagma@your.mind.gmail.com
(Lose your mind before emailing me)
Re: Hyperlinks in tree node text? [message #649867 is a reply to message #649412] Thu, 20 January 2011 14:18 Go to previous message
Eclipse UserFriend
Hi,

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 --> http://eclipse.org/swt/snippets/

HTH,
Lakshmi

[Updated on: Thu, 20 January 2011 14:18] by Moderator

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


Current Time: Sun Jul 06 15:54:25 EDT 2025

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

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

Back to the top