|
Context Sensitive Help -
01-14-2009, 01:00 AM
Hi all,
I'm trying to implement context sensitive help option in my application.
The steps i done:
1.Added a xml file in my project with context id definitions as below:
<?xml version="1.0" encoding="UTF-8"?>
<?NLS TYPE="org.eclipse.help.contexts"?>
<contexts>
<context id="myHelpMenu" title="MyTitle">
<description>The core JavaScript reference as defined by the ECMA spec</description>
<topic label="JavaScript editor concepts" href="concepts/myhtml.html"/>
</context>
<context id="Help_Context">
<description>try</description>
<topic href="concepts/myhtml.html" label="Help_Topic"/>
</context
</contexts>
2.I have written extension in plugin.xml
<extension point="org.eclipse.help.contexts">
<contexts file="contexts.xml" />
</extension>
3.I have register my context id to a menu as below:
IWorkbenchHelpSystem ihelp = PlatformUI.getWorkbench().getHelpSystem();
ihelp.setHelp(this, "com.rsa.esi.view.eclipse.views.myHelpMenu");
But when i press F1 the html is not launching.. If u find any mistakes,comment me as soon as possible.
Thanks in advance,
Ravikumar.
|