Search in sources :

Example 1 with IWorkbenchHelpSystem

use of org.eclipse.ui.help.IWorkbenchHelpSystem in project tdi-studio-se by Talend.

the class HelpAvailableDialog method configureShell.

@Override
protected void configureShell(Shell newShell) {
    super.configureShell(newShell);
    setHelpAvailable(true);
    IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench().getHelpSystem();
    helpSystem.setHelp(newShell, getHelpContextId());
}
Also used : IWorkbenchHelpSystem(org.eclipse.ui.help.IWorkbenchHelpSystem)

Example 2 with IWorkbenchHelpSystem

use of org.eclipse.ui.help.IWorkbenchHelpSystem in project tdi-studio-se by Talend.

the class AbstractScdDialog method addContextHelp.

public void addContextHelp(Control control, final String contextId) {
    final IWorkbenchHelpSystem helpSystem = PlatformUI.getWorkbench().getHelpSystem();
    helpSystem.setHelp(control, contextId);
    control.addMouseTrackListener(new MouseTrackAdapter() {

        @Override
        public void mouseEnter(MouseEvent e) {
            if (getTray() != null) {
                helpSystem.displayHelp(contextId);
            }
        }
    });
}
Also used : IWorkbenchHelpSystem(org.eclipse.ui.help.IWorkbenchHelpSystem) MouseEvent(org.eclipse.swt.events.MouseEvent) MouseTrackAdapter(org.eclipse.swt.events.MouseTrackAdapter)

Aggregations

IWorkbenchHelpSystem (org.eclipse.ui.help.IWorkbenchHelpSystem)2 MouseEvent (org.eclipse.swt.events.MouseEvent)1 MouseTrackAdapter (org.eclipse.swt.events.MouseTrackAdapter)1