Search in sources :

Example 1 with HelpTray

use of org.eclipse.help.ui.internal.views.HelpTray in project tdq-studio-se by Talend.

the class ExpressionEditDialog method showHelp.

/**
 * DOC yyi Comment method "showHelp".
 */
protected void showHelp() {
    IContext context = HelpSystem.getContext(HelpPlugin.getDefault().getExpressionEditContextID());
    if (null != context && 0 < context.getRelatedTopics().length) {
        openTray(new HelpTray());
        ReusableHelpPart helpPart = ((HelpTray) getTray()).getHelpPart();
        helpPart.showURL(context.getRelatedTopics()[0].getHref());
    }
}
Also used : HelpTray(org.eclipse.help.ui.internal.views.HelpTray) IContext(org.eclipse.help.IContext) ReusableHelpPart(org.eclipse.help.ui.internal.views.ReusableHelpPart)

Aggregations

IContext (org.eclipse.help.IContext)1 HelpTray (org.eclipse.help.ui.internal.views.HelpTray)1 ReusableHelpPart (org.eclipse.help.ui.internal.views.ReusableHelpPart)1