Context sensitive help not working. [message #619398] |
Tue, 26 August 2008 10:18 |
Prasanna K Messages: 78 Registered: July 2009 |
Member |
|
|
Hi,
I'm trying to provide context-sensitive help for my plug-in.
I have a html file which is the 'help' file.
I want a certain part of this help file to be shown in the workbench help
view if user presses F1 while inside a particular view of my plug-in.
I have created a contexts.xml file as below :
<?xml version="1.0" encoding="UTF-8"?>
<?NLS TYPE="org.eclipse.help.contexts"?>
<contexts>
<context id="abc">
<description>ABC description</description>
<topic label="ABC" href="html/abc.html" />
</context>
</contexts>
The extension in plugin.xml file is like this :
<extension point="org.eclipse.help.contexts">
<contexts
plugin="com.software.myPlugin"
file="contexts.xml">
</contexts>
</extension>
For now, I'd like to test it out by pressing F1 after clicking on a view.
So I use setHelp as below for the said view :
public void createPartControl(Composite parent) {
PlatformUI.getWorkbench().getHelpSystem().setHelp(parent,
"com.software.myPlugin.abc");
}
I run the project and click on the view. An then I press F1.
The help doesn't come up.
Hence, context sensitive help is not working for me.
What is that i am doing wrong?
Please guide .
Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.02965 seconds