Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » How to add anchor to href in a call to displayHelpResource
How to add anchor to href in a call to displayHelpResource [message #619444] Wed, 27 August 2008 13:39
Prasanna K is currently offline Prasanna KFriend
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.
Previous Topic:Context sensitive help not working.
Next Topic:Re: InfoCenter Exception
Goto Forum:
  


Current Time: Thu Apr 25 01:42:24 GMT 2024

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

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

Back to the top