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 03:18 Go to next message
yaumunlam  is currently offline yaumunlam
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 16:44 Go to previous messageGo to next message
David Green is currently offline David Green
Messages: 135
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] Wed, 03 December 2008 22:31 Go to previous messageGo to next message
yaumunlam  is currently offline yaumunlam
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 00:58 Go to previous messageGo to next message
David Green is currently offline David Green
Messages: 135
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 04:48 Go to previous messageGo to next message
yaumunlam  is currently offline yaumunlam
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 12:52 Go to previous message
David Green is currently offline David Green
Messages: 135
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 16:44 Go to previous message
David Green is currently offline David Green
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] Wed, 03 December 2008 22:31 Go to previous message
yaumunlam  is currently offline yaumunlam
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 00:58 Go to previous message
David Green is currently offline David Green
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 04:48 Go to previous message
yaumunlam  is currently offline yaumunlam
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 12:52 Go to previous message
David Green is currently offline David Green
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:Mylyn/Bugzilla Headless Usage
Next Topic:Could not update Mylyn weekly on Eclipse 3.5 (m3)
Goto Forum:
  


Current Time: Wed Jul 23 04:06:57 EDT 2014

Powered by FUDForum. Page generated in 0.01935 seconds