How to add anchor to href in a call to displayHelpResource [message #619444] |
Wed, 27 August 2008 13:39 |
Prasanna K Messages: 78 Registered: July 2009 |
Member |
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.02636 seconds