本文整理汇总了Java中org.eclipse.ui.help.IWorkbenchHelpSystem类的典型用法代码示例。如果您正苦于以下问题:Java IWorkbenchHelpSystem类的具体用法?Java IWorkbenchHelpSystem怎么用?Java IWorkbenchHelpSystem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IWorkbenchHelpSystem类属于org.eclipse.ui.help包,在下文中一共展示了IWorkbenchHelpSystem类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: openHelpInBrowser
import org.eclipse.ui.help.IWorkbenchHelpSystem; //导入依赖的package包/类
/**
* 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;
}
示例2: createPageControls
import org.eclipse.ui.help.IWorkbenchHelpSystem; //导入依赖的package包/类
@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);
}
示例3: run
import org.eclipse.ui.help.IWorkbenchHelpSystem; //导入依赖的package包/类
@Override
public void run() {
final IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench()
.getHelpSystem();
helpSystem.displayHelp("org.yakindu.sct.ui.editor.stext_keyword");
}
示例4: setHelpContext
import org.eclipse.ui.help.IWorkbenchHelpSystem; //导入依赖的package包/类
protected void setHelpContext(Control control, String helpId) {
IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench().getHelpSystem();
helpSystem.setHelp(control, helpId);
}
示例5: createGraphicalViewer
import org.eclipse.ui.help.IWorkbenchHelpSystem; //导入依赖的package包/类
@Override
protected void createGraphicalViewer(Composite parent) {
super.createGraphicalViewer(parent);
IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench().getHelpSystem();
helpSystem.setHelp(getGraphicalViewer().getControl(), HelpContextIds.SC_EDITOR_GRAPHICAL_VIEWER);
}
示例6: getHelpSystem
import org.eclipse.ui.help.IWorkbenchHelpSystem; //导入依赖的package包/类
/**
* Return the help system for this workbench.
*
* @return the help system
* @since 3.1
*/
public IWorkbenchHelpSystem getHelpSystem();