The setHelp method in org.eclipse.ui.help.WorkbenchHelp is used to associate a context id with a Control, IAction, Menu, or MenuItem. The context id should be fully qualified with the plug-in id. For example, the following snippet associates the id "com.example.helpexample.panic_button" with a button in the application.
WorkbenchHelp.setHelp(myButton, com.example.helpexample.panic_button);
The following UI controls cannot have context ids (and therefore cannot have infopops):
Widgets that do not get focus should not be assigned context ids, since they will never trigger an infopop.