Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Text Widget with Links in it?
Text Widget with Links in it? [message #668550] Fri, 06 May 2011 08:15 Go to next message
Gerald  is currently offline Gerald Friend
Messages: 5
Registered: April 2011
Junior Member
Hi,
i want to display some text with the style SWT.MULTI | SWT.WRAP and in this text I want to display links for some words in it.
Is the only solution to use a Browser Widget to achieve this?

Greets,
Gerald.
Re: Text Widget with Links in it? [message #668641 is a reply to message #668550] Fri, 06 May 2011 14:22 Go to previous messageGo to next message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
Hi Gerald,

Have you seen the org.eclipse.ui.forms.widgets.Hyperlink widget?

I believe it is what you are looking for.

Hope this helps.

[Updated on: Fri, 06 May 2011 14:22]

Report message to a moderator

Re: Text Widget with Links in it? [message #668647 is a reply to message #668550] Fri, 06 May 2011 14:42 Go to previous messageGo to next message
Gerald  is currently offline Gerald Friend
Messages: 5
Registered: April 2011
Junior Member
yes i have seen it. But with this widget all text is a hyperlink or I'm wrong?.
I tried now FormText but I think this widget is still a little bit buggy.
Because I tried it with the following XML for setText():
<form><p><a href=\"http://www.google.com/\" alt=\"test\">test1</a> blabla <a href=\"http://www.gmx.com/\" alt=\"test2\">test2</a></p></form>
The tooltip display is correct, but when I clicked on a link sometimes nothing happens, sometimes always google opens (clicking on the first or the second link) and sometimes it works as expected.
I have no idea why this isn't working...
I think I have to display the text as normal and list the links with Hyperlink under the text (there are max. 3 links in the text).

[Updated on: Fri, 06 May 2011 14:42]

Report message to a moderator

Re: Text Widget with Links in it? [message #668663 is a reply to message #668647] Fri, 06 May 2011 16:03 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Gerald,

please file a bugzilla [1] if you think this is a bug. In case of the
FormText, you may check against RCP. If it works there, it should also
work in RAP.

HTH
Rüdiger

[1] http://eclipse.org/rap/support/#new-bugs

On 06.05.2011 16:42, Gerald wrote:
> yes i have seen it. But with this widget all text is a hyperlink or I'm
> wrong?.
> I tried now FormText but I think this widget is still a little bit buggy.
> Because I tried it with the following XML for setText():
> <form><p><a href=\"http://www.google.com/\" alt=\"test\">test1</a>
> blabla <a href=\"http://www.gmx.com/\" alt=\"test2\">test2</a></p></form>
> The tooltip display is correct, but when I clicked on a link sometimes
> nothing happens, sometimes always google opens (clicking on the first or
> the second link) and sometimes it works as expected.
> I have no idea why this isn't working...
> I think I have to display the text as normal and list the links with
> Hyperlink under the text (there are max. 3 links in the text).
Previous Topic:Progress Indicator
Next Topic:what is the v3.7 M7 update site address?
Goto Forum:
  


Current Time: Fri Apr 19 15:28:32 GMT 2024

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

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

Back to the top