List of usage examples for org.eclipse.jface.dialogs IDialogPage performHelp
void performHelp();
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(); } }); }