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 02:30 Go to next message
Eclipse User
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
Lakshmi Shanmugam
Messages: 274
Registered: July 2009
Location: India
Senior Member
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


Lakshmi P Shanmugam

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

Report message to a moderator

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


Current Time: Mon Apr 21 11:37:42 EDT 2014

Powered by FUDForum. Page generated in 0.01675 seconds