Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Launch wizard from Active Help page in Eclipse
Launch wizard from Active Help page in Eclipse [message #1815431] Wed, 02 October 2019 17:06
Cesar Orozco is currently offline Cesar OrozcoFriend
Messages: 2
Registered: July 2017
Junior Member
I'm creating an RCP application and wanted to provide documentation using the Eclipse Help Contents (Help > Help Contents), I managed to add some pages to it by using the extension point org.eclipse.help.toc, this works fine, but I'm interested in providing a link in one of those pages to launch a wizard, I found that Eclipse provides support for this using a feature called Active Help.

First, in my html Help page I have imported the livehelp.js script:

<head>
    ...
    <script language="JavaScript" src="PLUGINS_ROOT/org.eclipse.help/livehelp.js"></script>
<head>

Then in the <body> I added a link:

<a href='javascript:liveAction("com.test.my.plugin", "com.test.my.plugin.actions.TestAction", "")'>Execute action</a>

And finally, this my TestAction class:

public class TestAction implements ILiveHelpAction {

    @Override
    public void run() {
        System.out.println("Action executed");
        // code to launch wizard is here
    }

    @Override
    public void setInitializationString(String str) {

    }
}


But when the link is clicked the action is not executed, I tried setting a breakpoint in the run() method but it is never called, any idea why this is happening?
Previous Topic:Sample Code for Hyperbola from book Eclipse Rich Client Platform
Next Topic:Eclipse RCP + OpenjDK 11 + Openjfx
Goto Forum:
  


Current Time: Sat Nov 09 02:03:23 GMT 2024

Powered by FUDForum. Page generated in 0.03153 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top