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: 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 19:18 Go to previous message
Lakshmi P ShanmugamFriend
Messages: 279
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 19:18]

Report message to a moderator

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


Current Time: Fri Apr 19 22:55:57 GMT 2024

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

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

Back to the top