Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » WikiText MarkupViewer and clickable image
WikiText MarkupViewer and clickable image [message #62552] Wed, 03 December 2008 08:18 Go to next message
yaumunlam  is currently offline yaumunlam Friend
Messages: 33
Registered: July 2009
Member
Hi,

how to make an image in MarkupViewer be clickable to execute an Eclipse
Command?

Thanks!

Yau.
Re: WikiText MarkupViewer and clickable image [message #62601 is a reply to message #62552] Wed, 03 December 2008 21:44 Go to previous messageGo to next message
David Green is currently offline David GreenFriend
Messages: 136
Registered: July 2009
Senior Member
Yau wrote:
> how to make an image in MarkupViewer be clickable to execute an Eclipse
> Command?

Yau, interesting idea! Currently there is no way to do this using the
MarkupViewer. Of course this is all possible if you display the
rendered HTML in a browser, provided that the browser itself can work
with active help (it must be an internal browser, not external).

Do you want to be able to do this by having an image hyperlink in the
source markup or programatically?

I'm assuming that you're talking about active help
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/ua_help_content_active.htm

There are a few missing things to make this work with MarkupViewer:

# MarkupViewer doesn't support image hyperlinks
# MarkupViewer doesn't run JavaScript

Please submit an enhancement request if this is of interest to you. Of
course contributions in this area would be appreciated!
Re: WikiText MarkupViewer and clickable image [message #62693 is a reply to message #62601] Thu, 04 December 2008 03:31 Go to previous messageGo to next message
yaumunlam  is currently offline yaumunlam Friend
Messages: 33
Registered: July 2009
Member
So, MarkupViewer already support text hyperlinks?

"David Green" <dgreen99@gmail.com> wrote in message
news:gh6uno$ol4$1@build.eclipse.org...
> Yau wrote:
> > how to make an image in MarkupViewer be clickable to execute an Eclipse
> > Command?
>
> Yau, interesting idea! Currently there is no way to do this using the
> MarkupViewer. Of course this is all possible if you display the
> rendered HTML in a browser, provided that the browser itself can work
> with active help (it must be an internal browser, not external).
>
> Do you want to be able to do this by having an image hyperlink in the
> source markup or programatically?
>
> I'm assuming that you're talking about active help
>
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/ua_help_content_active.htm
>
> There are a few missing things to make this work with MarkupViewer:
>
> # MarkupViewer doesn't support image hyperlinks
> # MarkupViewer doesn't run JavaScript
>
> Please submit an enhancement request if this is of interest to you. Of
> course contributions in this area would be appreciated!
Re: WikiText MarkupViewer and clickable image [message #62717 is a reply to message #62693] Thu, 04 December 2008 05:58 Go to previous messageGo to next message
David Green is currently offline David GreenFriend
Messages: 136
Registered: July 2009
Senior Member
Yau wrote:
> So, MarkupViewer already support text hyperlinks?

Yes
Re: WikiText MarkupViewer and clickable image [message #63103 is a reply to message #62601] Mon, 08 December 2008 09:48 Go to previous messageGo to next message
yaumunlam  is currently offline yaumunlam Friend
Messages: 33
Registered: July 2009
Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=257868

"David Green" <dgreen99@gmail.com> wrote in message
news:gh6uno$ol4$1@build.eclipse.org...
> Yau wrote:
> > how to make an image in MarkupViewer be clickable to execute an Eclipse
> > Command?
>
> Yau, interesting idea! Currently there is no way to do this using the
> MarkupViewer. Of course this is all possible if you display the
> rendered HTML in a browser, provided that the browser itself can work
> with active help (it must be an internal browser, not external).
>
> Do you want to be able to do this by having an image hyperlink in the
> source markup or programatically?
>
> I'm assuming that you're talking about active help
>
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/ua_help_content_active.htm
>
> There are a few missing things to make this work with MarkupViewer:
>
> # MarkupViewer doesn't support image hyperlinks
> # MarkupViewer doesn't run JavaScript
>
> Please submit an enhancement request if this is of interest to you. Of
> course contributions in this area would be appreciated!
Re: WikiText MarkupViewer and clickable image [message #63129 is a reply to message #63103] Mon, 08 December 2008 17:52 Go to previous message
David Green is currently offline David GreenFriend
Messages: 136
Registered: July 2009
Senior Member
Yau,

Image hyperlinks are now supported (see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=257868)

to get hyperlinks invoking Eclipse commands is a little trickier, since
MarkupViewer doesn't run JavaScript. It is however possible, but
requires some subclassing. The following recepie should do the trick:

1. Subclass AnnotationHyperlinkDetector
2. Override AnnotationHyperlinkDetector.createHyperlink to return
hyperlinks that recognize your custom URL scheme, or pass off to super()
3. Subclass MarkupViewerConfiguration
4. Override createAnnotationHyperlinkDetector() and cause it to return
your subclass from #1

That should do it. Please let me know how it goes.

David

Yau wrote:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=257868
>
> "David Green" <dgreen99@gmail.com> wrote in message
> news:gh6uno$ol4$1@build.eclipse.org...
>> Yau wrote:
>>> how to make an image in MarkupViewer be clickable to execute an Eclipse
>>> Command?
>> Yau, interesting idea! Currently there is no way to do this using the
>> MarkupViewer. Of course this is all possible if you display the
>> rendered HTML in a browser, provided that the browser itself can work
>> with active help (it must be an internal browser, not external).
>>
>> Do you want to be able to do this by having an image hyperlink in the
>> source markup or programatically?
>>
>> I'm assuming that you're talking about active help
>>
> http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/ua_help_content_active.htm
>> There are a few missing things to make this work with MarkupViewer:
>>
>> # MarkupViewer doesn't support image hyperlinks
>> # MarkupViewer doesn't run JavaScript
>>
>> Please submit an enhancement request if this is of interest to you. Of
>> course contributions in this area would be appreciated!
>
>
Re: WikiText MarkupViewer and clickable image [message #595155 is a reply to message #62552] Wed, 03 December 2008 21:44 Go to previous message
David Green is currently offline David GreenFriend
Messages: 96
Registered: July 2009
Member
Yau wrote:
> how to make an image in MarkupViewer be clickable to execute an Eclipse
> Command?

Yau, interesting idea! Currently there is no way to do this using the
MarkupViewer. Of course this is all possible if you display the
rendered HTML in a browser, provided that the browser itself can work
with active help (it must be an internal browser, not external).

Do you want to be able to do this by having an image hyperlink in the
source markup or programatically?

I'm assuming that you're talking about active help
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/ua_help_content_active.htm

There are a few missing things to make this work with MarkupViewer:

# MarkupViewer doesn't support image hyperlinks
# MarkupViewer doesn't run JavaScript

Please submit an enhancement request if this is of interest to you. Of
course contributions in this area would be appreciated!
Re: WikiText MarkupViewer and clickable image [message #595190 is a reply to message #62601] Thu, 04 December 2008 03:31 Go to previous message
yaumunlam  is currently offline yaumunlam Friend
Messages: 33
Registered: July 2009
Member
So, MarkupViewer already support text hyperlinks?

"David Green" <dgreen99@gmail.com> wrote in message
news:gh6uno$ol4$1@build.eclipse.org...
> Yau wrote:
> > how to make an image in MarkupViewer be clickable to execute an Eclipse
> > Command?
>
> Yau, interesting idea! Currently there is no way to do this using the
> MarkupViewer. Of course this is all possible if you display the
> rendered HTML in a browser, provided that the browser itself can work
> with active help (it must be an internal browser, not external).
>
> Do you want to be able to do this by having an image hyperlink in the
> source markup or programatically?
>
> I'm assuming that you're talking about active help
>
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/ua_help_content_active.htm
>
> There are a few missing things to make this work with MarkupViewer:
>
> # MarkupViewer doesn't support image hyperlinks
> # MarkupViewer doesn't run JavaScript
>
> Please submit an enhancement request if this is of interest to you. Of
> course contributions in this area would be appreciated!
Re: WikiText MarkupViewer and clickable image [message #595208 is a reply to message #62693] Thu, 04 December 2008 05:58 Go to previous message
David Green is currently offline David GreenFriend
Messages: 96
Registered: July 2009
Member
Yau wrote:
> So, MarkupViewer already support text hyperlinks?

Yes
Re: WikiText MarkupViewer and clickable image [message #595302 is a reply to message #62601] Mon, 08 December 2008 09:48 Go to previous message
yaumunlam  is currently offline yaumunlam Friend
Messages: 33
Registered: July 2009
Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=257868

"David Green" <dgreen99@gmail.com> wrote in message
news:gh6uno$ol4$1@build.eclipse.org...
> Yau wrote:
> > how to make an image in MarkupViewer be clickable to execute an Eclipse
> > Command?
>
> Yau, interesting idea! Currently there is no way to do this using the
> MarkupViewer. Of course this is all possible if you display the
> rendered HTML in a browser, provided that the browser itself can work
> with active help (it must be an internal browser, not external).
>
> Do you want to be able to do this by having an image hyperlink in the
> source markup or programatically?
>
> I'm assuming that you're talking about active help
>
http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/ua_help_content_active.htm
>
> There are a few missing things to make this work with MarkupViewer:
>
> # MarkupViewer doesn't support image hyperlinks
> # MarkupViewer doesn't run JavaScript
>
> Please submit an enhancement request if this is of interest to you. Of
> course contributions in this area would be appreciated!
Re: WikiText MarkupViewer and clickable image [message #595315 is a reply to message #63103] Mon, 08 December 2008 17:52 Go to previous message
David Green is currently offline David GreenFriend
Messages: 96
Registered: July 2009
Member
Yau,

Image hyperlinks are now supported (see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=257868)

to get hyperlinks invoking Eclipse commands is a little trickier, since
MarkupViewer doesn't run JavaScript. It is however possible, but
requires some subclassing. The following recepie should do the trick:

1. Subclass AnnotationHyperlinkDetector
2. Override AnnotationHyperlinkDetector.createHyperlink to return
hyperlinks that recognize your custom URL scheme, or pass off to super()
3. Subclass MarkupViewerConfiguration
4. Override createAnnotationHyperlinkDetector() and cause it to return
your subclass from #1

That should do it. Please let me know how it goes.

David

Yau wrote:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=257868
>
> "David Green" <dgreen99@gmail.com> wrote in message
> news:gh6uno$ol4$1@build.eclipse.org...
>> Yau wrote:
>>> how to make an image in MarkupViewer be clickable to execute an Eclipse
>>> Command?
>> Yau, interesting idea! Currently there is no way to do this using the
>> MarkupViewer. Of course this is all possible if you display the
>> rendered HTML in a browser, provided that the browser itself can work
>> with active help (it must be an internal browser, not external).
>>
>> Do you want to be able to do this by having an image hyperlink in the
>> source markup or programatically?
>>
>> I'm assuming that you're talking about active help
>>
> http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/ua_help_content_active.htm
>> There are a few missing things to make this work with MarkupViewer:
>>
>> # MarkupViewer doesn't support image hyperlinks
>> # MarkupViewer doesn't run JavaScript
>>
>> Please submit an enhancement request if this is of interest to you. Of
>> course contributions in this area would be appreciated!
>
>
Previous Topic:Unable to re-assign bug to a different person in Mylyn
Next Topic:MarkupViewer and HyperlinkDetector
Goto Forum:
  


Current Time: Fri Nov 08 22:24:35 GMT 2024

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

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

Back to the top