use of org.eclipse.ui.internal.help.WorkbenchHelpSystem in project eclipse.platform.ui by eclipse-platform.
the class HelpSupportTests method testHelpSupport.
@Test
public void testHelpSupport() {
WorkbenchHelpSystem help = WorkbenchHelpSystem.getInstance();
help.setDesiredHelpSystemId(getExtensionId());
assertFalse(help.hasHelpUI());
getBundle();
help.dispose();
assertTrue(help.hasHelpUI());
removeBundle();
help.dispose();
assertFalse(help.hasHelpUI());
help.setDesiredHelpSystemId(null);
}
use of org.eclipse.ui.internal.help.WorkbenchHelpSystem in project translationstudio8 by heartsome.
the class ApplicationWorkbenchWindowAdvisor method setIdToHelpSystem.
/**
* robert 2012-11-11
*/
private void setIdToHelpSystem() {
//setDesiredHelpSystemId
WorkbenchHelpSystem helpSystem = (WorkbenchHelpSystem) PlatformUI.getWorkbench().getHelpSystem();
// net.heartsome.cat.ts.ui.help.selfHelp 为 插件 net.heartsome.cat.ts.ui.help 与的扩展点 helpSupport 的 id
helpSystem.setDesiredHelpSystemId("net.heartsome.cat.ts.ui.help.selfHelp");
}
Aggregations