Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Context sensitive help not working.
Context sensitive help not working. [message #619398] Tue, 26 August 2008 10:18
Prasanna K is currently offline Prasanna KFriend
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.
Previous Topic:Showing help after pressing a button
Next Topic:How to add anchor to href in a call to displayHelpResource
Goto Forum:
  


Current Time: Fri Apr 26 03:41:04 GMT 2024

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

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

Back to the top