Search in sources :

Example 1 with WorkbenchHelpSystem

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);
}
Also used : WorkbenchHelpSystem(org.eclipse.ui.internal.help.WorkbenchHelpSystem) Test(org.junit.Test)

Example 2 with WorkbenchHelpSystem

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");
}
Also used : WorkbenchHelpSystem(org.eclipse.ui.internal.help.WorkbenchHelpSystem)

Aggregations

WorkbenchHelpSystem (org.eclipse.ui.internal.help.WorkbenchHelpSystem)2 Test (org.junit.Test)1