|
|
|
|
|
Re: WikiText MarkupViewer and clickable image [message #63129 is a reply to message #63103] |
Mon, 08 December 2008 12:52  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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 #595315 is a reply to message #63103] |
Mon, 08 December 2008 12:52  |
Eclipse User |
|
|
|
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!
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04095 seconds