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

Oops I just realized Konrad also answered and I guess we're both saying the
same thing.




                                                                                                                              
                    Konrad                                                                                                    
                    Kolosowski/Toronto/IBM@IB       To:     platform-help-dev@xxxxxxxxxxx                                     
                    MCA                             cc:     platform-help-dev@xxxxxxxxxxx,                                    
                    Sent by:                         platform-help-dev-admin@xxxxxxxxxxx                                      
                    platform-help-dev-admin@e       Subject:     Re: [platform-help-dev] accessing plug-in actions via help   
                    clipse.org                                                                                                
                                                                                                                              
                                                                                                                              
                    02/26/2002 03:35 PM                                                                                       
                    Please respond to                                                                                         
                    platform-help-dev                                                                                         
                                                                                                                              
                                                                                                                              




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


_______________________________________________
platform-help-dev mailing list
platform-help-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-help-dev





Back to the top