[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: documentation references in context help

Dara Meinhard wrote:
Hi Michael,

try the following - it should works under eclipse 3.1 M7:

First create your "help plugin" contains only your html-help-files (possibly as .zip),
your plugin.xml including the [org.eclipse.help.context] extension
and 1 to * context.xml files.


The plugin-attribute of the [org.eclipse.help.context] extension has to referenz to
the plugin id of your plugin contains the UI-Javaclass displaying your help (view,
editor or anything else).
You should create a new [org.eclipse.help.context] extension for every new plugin.
(Sample: [org.eclipse.platform.doc.user])


Inside your context.xml files you have to set a context-id.
Referenz to this ID when you set the help to your ui-javaclass.
=> PlatformUI.getWorkspace().getHelpSystem().setHelp(getControl(), contextId).
(Sample: [org.eclipse.editors.text.TextEditorPreferencPage])


This shoul work...

Ok,
this works, but how do I specify the href's in the context.xml, when the html-file is located in another plugin ?
Using a path like "../myplugin.id/guide.html" seems to work, but whats happens if I use different plugin directories.


greetings
Michael