[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.ua] Re: Generating a ToC at run-time

Yes, there is an API, see the tocProvider element in the extension point org.eclipse.help.toc - see
http://help.eclipse.org/galileo/topic/org.eclipse.platform.doc.isv/reference/extension-points/org_eclipse_help_toc.html


You will probably also want to use the org.eclipse.help.contentProducer extension point to read the content.

Peter Saunders wrote:
Hi

I am displaying a set of external HTML help files from a local filesystem within
the Eclipse help system as follows:


 docDir = getDocDirPreference();
 href = "file:" + docDir + "/myhelp.html";
 PlatformUI.getWorkbench().getHelpSystem().displayHelpResource(href);

The location of the directory containing the external help files is configurable at run-time and this may affect the precise set of help files available so I am unable to provide a static Table of Contents file when I build my plug-in.

If I generated a ToC programatically at run-time, how could I add this to the help system? Is there an API for this?

Thanks

Peter Saunders