Example usage for org.eclipse.jface.dialogs IDialogPage performHelp

List of usage examples for org.eclipse.jface.dialogs IDialogPage performHelp

Introduction

In this page you can find the example usage for org.eclipse.jface.dialogs IDialogPage performHelp.

Prototype

void performHelp();

Source Link

Document

Notifies that help has been requested for this dialog page.

Usage

From source file:eu.esdihumboldt.hale.ui.functions.groovy.internal.PageHelp.java

License:Open Source License

/**
 * Create a tool item that calls {@link IDialogPage#performHelp()} on the
 * given dialog page.//  w ww.j  a v  a 2 s.c o m
 * 
 * @param bar the tool bar
 * @param page the dialog page
 */
public static void createToolItem(ToolBar bar, final IDialogPage page) {
    ToolItem item = new ToolItem(bar, SWT.PUSH);
    item.setToolTipText("Show help");
    item.setImage(CommonSharedImages.getImageRegistry().get(CommonSharedImages.IMG_HELP));

    item.addSelectionListener(new SelectionAdapter() {

        @Override
        public void widgetSelected(SelectionEvent e) {
            page.performHelp();
        }
    });
}