You want a subclass of org.eclipse.jface.dialogs.TrayDialog. This will give you a dialog with a button bar and a pull-out tray that will appear when you click the help button. According to Javadoc TrayDialog:
It is recommended to subclass this class instead Dialogin all cases, unless the dialog should never show the tray
You put your complex code in a method createDialogArea(Composite parent). If you want everything to look right, make sure you use the composite returned from the super call instead of using the parent. This will ensure that the fields have a default value. For instance:
protected Control createDialogArea(Composite parent) {
Composite parentWithMargins = (Composite) super.createDialogArea(parent);
return parentWithMargins;
}
source
share