Interface IWorkbenchHelpSystem
 The interface that is used to access the workbench help system. Replaces
 static methods on WorkbenchHelp.
 
This interface is not intended to be implemented by clients.
- Since:
- 3.1
- Restriction:
- This interface is not intended to be implemented by clients.
- 
Method SummaryModifier and TypeMethodDescriptionvoiddisplayContext(IContext context, int x, int y) Displays context-sensitive help for the given context.voidDisplays the dynamic help for the current UI context.voidDisplays the entire help bookshelf.voiddisplayHelp(String helpContextId) Calls the help support system to display the given help id.voiddisplayHelp(IContext context) Displays context-sensitive help for the given context.voiddisplayHelpResource(String href) Displays help content for the help resource with the given URL.voidDisplays the help search system.booleanReturns whether there is a UI help system installed.booleanReturns whether the context-sensitive help window is currently being displayed.Resolves the help resource href by converting it into a legitimate URL according to the implementation of the help system.voidStarts the search using the help search system.voidSets the given help id on the given action.voidSets the given help id on the given control.voidSets the given help id on the given menu item.voidSets the given help id on the given menu.
- 
Method Details- 
hasHelpUIboolean hasHelpUI()Returns whether there is a UI help system installed.- Returns:
- whether there is a UI help system installed
 
- 
displayHelpvoid displayHelp()Displays the entire help bookshelf.Ignored if no help UI is available. 
- 
displaySearchvoid displaySearch()Displays the help search system.Ignored if no help UI is available. 
- 
displayDynamicHelpvoid displayDynamicHelp()Displays the dynamic help for the current UI context.Ignored if no help UI is available. 
- 
searchStarts the search using the help search system.Ignored if no help UI is available. - Parameters:
- expression- the search expression. The actual syntax rules of the expression are dependent on the active help system. Refer to the help system documentation for more details.
 
- 
displayContextDisplays context-sensitive help for the given context.(x,y) coordinates specify the location where the context sensitive help UI will be presented. These coordinates are screen-relative (ie: (0,0) is the top left-most screen corner). The platform is responsible for calling this method and supplying the appropriate location. Ignored if no help UI is available. - Parameters:
- context- the context to display
- x- horizontal position
- y- vertical position
 
- 
displayHelpResourceDisplays help content for the help resource with the given URL.This method is called by the platform to launch the help system UI, displaying the documentation identified by the hrefparameter.The help system makes no guarantee that all the help resources can be displayed or how they are displayed. Ignored if no help UI is available. - Parameters:
- href- the URL of the help resource.- Valid href are as described in - IHelpResource.getHref()
 
- 
displayHelpCalls the help support system to display the given help id.May only be called from a UI thread. - Parameters:
- helpContextId- the id of the context to display
 
- 
displayHelpDisplays context-sensitive help for the given context.May only be called from a UI thread. - Parameters:
- context- the context to display
 
- 
isContextHelpDisplayedboolean isContextHelpDisplayed()Returns whether the context-sensitive help window is currently being displayed. Returnsfalseif the help UI has not been activated yet.- Returns:
- trueif the context-sensitive help window is currently being displayed,- falseotherwise
 
- 
setHelpSets the given help id on the given action.- Parameters:
- action- the action on which to register the id
- helpContextId- the id to use when F1 help is invoked
 
- 
setHelpSets the given help id on the given control.- Parameters:
- control- the control on which to register the id
- helpContextId- the id to use when F1 help is invoked
 
- 
setHelpSets the given help id on the given menu.- Parameters:
- menu- the menu on which to register the id
- helpContextId- the id to use when F1 help is invoked
 
- 
setHelpSets the given help id on the given menu item.- Parameters:
- item- the menu item on which to register the id
- helpContextId- the id to use when F1 help is invoked
 
- 
resolveResolves the help resource href by converting it into a legitimate URL according to the implementation of the help system. Help resources that already have a protocol will be unchanged.- Parameters:
- href- the URL of the help resource.- Valid href are as described in - IHelpResource.getHref()
- documentOnly- if- true, the resulting URL must point at the document referenced by href. Otherwise, it can be a URL that contains additional elements like navigation that the help system adds to the document.
- Returns:
- the resolved URL or nullif no help UI is available.
 
 
-