How to add anchor to href in a call to displayHelpResource [message #474298] |
Wed, 27 August 2008 09:39  |
Eclipse User |
|
|
|
Hello,
I want to show help in help window (not in help view) when user presses
certain button on a view in my plug-in.
I figured out that this is possible with the help of the method :
PlatformUI.getWorkbench().getHelpSystem().displayHelpResourc e( "href");
The location of help file is : html/abc.html
The api says href should be wrt to plug-in so the href will look like :
"/myPlug-in/html/abc.html"
When I run this I get the help file coming up in help window without any
problem.
Now, I want the html file to scroll down to a certain part of it.
When the user presses the button I know which part of the html file to be
displayed. As in, I know the anchor to it.
If I add the anchor to the href as : "/myPlug-in/html/abc.html#" +
"anchor", the help page does not scroll down to the place of the html file
where I want.
Question : How do I add an anchor to the href in the call to method :
PlatformUI.getWorkbench().getHelpSystem().displayHelpResourc e( "href");
Thaks.
|
|
|
|
|
|
Re: How to add anchor to href in a call to displayHelpResource [message #474304 is a reply to message #474301] |
Fri, 29 August 2008 03:26  |
Eclipse User |
|
|
|
Lee Anne wrote:
> Are you trying this format?:
>
PlatformUI.getWorkbench().getHelpSystem().displayHelpResourc e( "/myPlug-in/html/abc.html#anchor")
> From your email, I wasn't sure how you were adding the anchor into the
> href.
> Sincerely,
> Lee Anne
Yes, I have tried the format you have mentioned and it doesn't work. I
thought this would be the easiest part. I'd appreciate if you could find
some solution to this asap.
Thanks.
|
|
|
Re: How to add anchor to href in a call to displayHelpResource [message #619446 is a reply to message #474298] |
Wed, 27 August 2008 12:07  |
Eclipse User |
|
|
|
I would have expected that to work. It may be that the help system is
parsing the URL and losing the anchor part. Can you try replacing the #
with %23 and see if it works any better.
kaprasi wrote:
> Hello,
>
> I want to show help in help window (not in help view) when user presses
> certain button on a view in my plug-in.
>
> I figured out that this is possible with the help of the method :
> PlatformUI.getWorkbench().getHelpSystem().displayHelpResourc e( "href");
>
> The location of help file is : html/abc.html
>
> The api says href should be wrt to plug-in so the href will look like :
> "/myPlug-in/html/abc.html"
>
> When I run this I get the help file coming up in help window without any
> problem.
>
> Now, I want the html file to scroll down to a certain part of it.
> When the user presses the button I know which part of the html file to
> be displayed. As in, I know the anchor to it.
>
> If I add the anchor to the href as : "/myPlug-in/html/abc.html#" +
> "anchor", the help page does not scroll down to the place of the html
> file where I want.
>
> Question : How do I add an anchor to the href in the call to method :
> PlatformUI.getWorkbench().getHelpSystem().displayHelpResourc e( "href");
>
> Thaks.
>
>
>
|
|
|
|
Re: How to add anchor to href in a call to displayHelpResource [message #619451 is a reply to message #474298] |
Thu, 28 August 2008 08:43  |
Eclipse User |
|
|
|
Originally posted by: nospam_kowalskilee.gmail.com
Are you trying this format?:
PlatformUI.getWorkbench().getHelpSystem().displayHelpResourc e( "/myPlug-in/html/abc.html#anchor")
From your email, I wasn't sure how you were adding the anchor into the
href.
Sincerely,
Lee Anne
kaprasi wrote:
> Hello,
>
> I want to show help in help window (not in help view) when user presses
> certain button on a view in my plug-in.
>
> I figured out that this is possible with the help of the method :
> PlatformUI.getWorkbench().getHelpSystem().displayHelpResourc e( "href");
>
> The location of help file is : html/abc.html
>
> The api says href should be wrt to plug-in so the href will look like :
> "/myPlug-in/html/abc.html"
>
> When I run this I get the help file coming up in help window without any
> problem.
>
> Now, I want the html file to scroll down to a certain part of it.
> When the user presses the button I know which part of the html file to
> be displayed. As in, I know the anchor to it.
>
> If I add the anchor to the href as : "/myPlug-in/html/abc.html#" +
> "anchor", the help page does not scroll down to the place of the html
> file where I want.
>
> Question : How do I add an anchor to the href in the call to method :
> PlatformUI.getWorkbench().getHelpSystem().displayHelpResourc e( "href");
>
> Thaks.
>
>
>
|
|
|
Re: How to add anchor to href in a call to displayHelpResource [message #619456 is a reply to message #474301] |
Fri, 29 August 2008 03:26  |
Eclipse User |
|
|
|
Lee Anne wrote:
> Are you trying this format?:
>
PlatformUI.getWorkbench().getHelpSystem().displayHelpResourc e( "/myPlug-in/html/abc.html#anchor")
> From your email, I wasn't sure how you were adding the anchor into the
> href.
> Sincerely,
> Lee Anne
Yes, I have tried the format you have mentioned and it doesn't work. I
thought this would be the easiest part. I'd appreciate if you could find
some solution to this asap.
Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.45942 seconds