/** * 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; }
@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); }
@Override public void run() { final IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench() .getHelpSystem(); helpSystem.displayHelp("org.yakindu.sct.ui.editor.stext_keyword"); }
protected void setHelpContext(Control control, String helpId) { IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench().getHelpSystem(); helpSystem.setHelp(control, helpId); }
@Override protected void createGraphicalViewer(Composite parent) { super.createGraphicalViewer(parent); IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench().getHelpSystem(); helpSystem.setHelp(getGraphicalViewer().getControl(), HelpContextIds.SC_EDITOR_GRAPHICAL_VIEWER); }
/** * Return the help system for this workbench. * * @return the help system * @since 3.1 */ public IWorkbenchHelpSystem getHelpSystem();