Java 类org.eclipse.ui.help.IWorkbenchHelpSystem 实例源码

项目:APICloud-Studio    文件:UIUtils.java   
/**
 * Opens the internal help in the Studio's internal browser.
 * 
 * @param url
 * @return A boolean value indicating a successful operations or not.
 */
public static boolean openHelpInBrowser(String url)
{
    IWorkbench workbench = PlatformUI.getWorkbench();
    if (workbench != null)
    {
        IWorkbenchHelpSystem helpSystem = workbench.getHelpSystem();
        URL resolvedURL = helpSystem.resolve(url, true);
        if (resolvedURL != null)
        {
            return openInBroswer(resolvedURL, true, IWorkbenchBrowserSupport.AS_EDITOR
                    | IWorkbenchBrowserSupport.STATUS);
        }
        else
        {
            IdeLog.logError(UIPlugin.getDefault(), "Unable to resolve the Help URL for " + url); //$NON-NLS-1$
            return false;
        }
    }
    return false;
}
项目:pgcodekeeper    文件:NewProjWizard.java   
@Override
public void createPageControls(Composite pageContainer) {
    super.createPageControls(pageContainer);

    IWorkbenchHelpSystem helpSystem = workbench.getHelpSystem();
    helpSystem.setHelp(pageRepo.getControl(), HELP.NEW_WIZARD);
    helpSystem.setHelp(pageDb.getControl(), HELP.NEW_WIZARD_INIT);
}
项目:solidity-ide    文件:CustomCSSHelpHoverProvider.java   
@Override
public void run() {
    final IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench()
            .getHelpSystem();
    helpSystem.displayHelp("org.yakindu.sct.ui.editor.stext_keyword");
}
项目:statecharts    文件:AbstractEditorPropertySection.java   
protected void setHelpContext(Control control, String helpId) {
    IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench().getHelpSystem();
    helpSystem.setHelp(control, helpId);
}
项目:statecharts    文件:StatechartDiagramEditor.java   
@Override
protected void createGraphicalViewer(Composite parent) {
    super.createGraphicalViewer(parent);
    IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench().getHelpSystem();
    helpSystem.setHelp(getGraphicalViewer().getControl(), HelpContextIds.SC_EDITOR_GRAPHICAL_VIEWER);
}
项目:statecharts    文件:CustomCSSHelpHoverProvider.java   
@Override
public void run() {
    final IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench()
            .getHelpSystem();
    helpSystem.displayHelp("org.yakindu.sct.ui.editor.stext_keyword");
}
项目:gef-gwt    文件:IWorkbench.java   
/**
 * Return the help system for this workbench.
 * 
 * @return the help system
 * @since 3.1
 */
public IWorkbenchHelpSystem getHelpSystem();