Context-sensitive help from multiple plug-ins [message #613214] |
Tue, 06 May 2008 01:54 |
Brian Chase Messages: 9 Registered: July 2009 |
Junior Member |
|
|
Hello,
I am building an RCP application where I want to provide my own help
contents for standard screens such as the Import Wizard, Export Wizard
and New Project wizard. After reading the following Eclipse help page,
it seems easy... but its not working.
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/ua_help_context_xml.htm
Here's what I've done:
I've added the required help plugins, org.eclipse.help,
org.eclipse.help.ui, org.eclipse.help.webapp and all their required
dependencies. This works fine, the help window will open and serve help
pages in my app.
I added this line to the initialize method of my WorkbenchAdvisor.
This gives me the ? question mark button on my Eclipse wizard pages.
TrayDialog.setDialogHelpAvailable(true);
I created a help plugin and added the following extension point:
<extension point="org.eclipse.help.contexts">
<contexts file="contexts_Workbench.xml" plugin="org.eclipse.ui.ide"/>
</extension>
Inside contexts_Workbench.xml I have the following (plus more but left out)
<context id="missing">
<description>The context help for this user interface CUSTOM element
could not be found.</description>
</context>
<context id="new_project_wizard_context">
<description>Wizard to assist in creating a new project.</description>
<topic label="Im working" href="html/concepts/maintopic.html"/>
</context>
When I click the ? question mark buttton on the New project wizard, the
tray opens up on the right and the help info is visible. Unfortunately,
I do not see the contents defined by id="new_project_wizard_context".
Instead I see the message defined as id="missing" with my 'custom'
message. At least I know that my help plugin is visible to my RCP app,
but it appears my context ID is not correct. I've tried a number of
variations on this context ID however nothing has worked. Please let me
know the right way to get this working.
Thanks in advance!
Brian
|
|
|
Powered by
FUDForum. Page generated in 0.03475 seconds