Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Hyperlinks in Texteditor
Hyperlinks in Texteditor [message #450739] Thu, 17 February 2005 13:42 Go to next message
Philipp is currently offline PhilippFriend
Messages: 49
Registered: July 2009
Member
This is a multipart message in MIME format.
--=_alternative 004B5974C1256FAB_=
Content-Type: text/plain; charset="US-ASCII"

Hi,

are there any tutorials on how to create hyperlinks in a texteditor. I
want to do hyperlinks like the Java editor does. Can anyone point me to
some samples ?

thx in advance
-Philipp
--=_alternative 004B5974C1256FAB_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">are there any tutorials on how to create
hyperlinks in a texteditor. I want to do hyperlinks like the Java editor
does. Can anyone point me to some samples ?</font>
<br>
<br><font size=2 face="sans-serif">thx in advance</font>
<br><font size=2 face="sans-serif">-Philipp</font>
--=_alternative 004B5974C1256FAB_=--
Re: Hyperlinks in Texteditor [message #450741 is a reply to message #450739] Thu, 17 February 2005 14:32 Go to previous messageGo to next message
Philipp is currently offline PhilippFriend
Messages: 49
Registered: July 2009
Member
This is a multipart message in MIME format.
--=_alternative 004FE498C1256FAB_=
Content-Type: text/plain; charset="US-ASCII"

I found out that hyperlink support for texteditors is supported since 3.1
M4 only. As I have to use 3.0 I cannot use that feature. Is there any way
to implement hyperlinks manually?

Philipp
--=_alternative 004FE498C1256FAB_=
Content-Type: text/html; charset="US-ASCII"


<br><font size=2 face="sans-serif">I found out that hyperlink support for
texteditors is supported since 3.1 M4 only. As I have to use 3.0 I cannot
use that feature. Is there any way to implement hyperlinks manually?</font>
<br>
<br><font size=2 face="sans-serif">Philipp</font>
--=_alternative 004FE498C1256FAB_=--
Re: Hyperlinks in Texteditor [message #450762 is a reply to message #450741] Thu, 17 February 2005 19:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: shashireo.hotmail.com

You can do this by finding the coordinates of the mouse and then parsing
the text to the left and right of it to see if the pointer is on an URL.
Then you can either change mouse pointer and if the user clicks on it,
pop up a Browser.

Shashi

philipp_tiedt@de.ibm.com wrote:
>
> I found out that hyperlink support for texteditors is supported since
> 3.1 M4 only. As I have to use 3.0 I cannot use that feature. Is there
> any way to implement hyperlinks manually?
>
> Philipp
Re: Hyperlinks in Texteditor [message #450767 is a reply to message #450741] Thu, 17 February 2005 21:47 Go to previous message
Alex Le is currently offline Alex LeFriend
Messages: 649
Registered: July 2009
Senior Member
Perhaps try TextViewer.setTextDoubleClickStrategy(...). That would
perhaps give you the text region that you can manipulate with, e.g.,
copy, parse, replace, find, etc.

philipp_tiedt@de.ibm.com wrote:

>
> I found out that hyperlink support for texteditors is supported since
> 3.1 M4 only. As I have to use 3.0 I cannot use that feature. Is there
> any way to implement hyperlinks manually?
>
> Philipp
Previous Topic:SWT table widget question
Next Topic:Component Repository
Goto Forum:
  


Current Time: Wed Sep 25 04:21:43 GMT 2024

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

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

Back to the top