Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-help-dev] accessing plug-in actions via help

Yes, it is possible to trigger code in a plugin from within help document.
You need:

1.  Write a class implementing an org.eclipse.help.LiveHelpExtension
interface.

2.  Import livehelp.js from help.webapp plugin into your HTML document i.e.
add
<SCRIPT LANGUAGE="JavaScript" src
="../org.eclipse.help.webapp/livehelp.js"></SCRIPT>
to the head of your document.

3.  Call "liveAction" javascript function passing: plugin ID, class name,
and data to be passed to your class for initialization
for example:
<A HREF='javascript:liveAction("org.eclipse.myplugin",
"org.eclipse.bla.Live", "Text to print")'>Click here to do it</A>

Please post to the Eclipse newsgroup if you encounter problems.

Konrad Kolosowski
Eclipse Help System




Back to the top