if (help != null) {
final Button propertyHelp = factory.createButton(workParent, "", SWT.BUTTON1);
propertyHelp.setImage(PlatformUI.getWorkbench().getSharedImages().getImage(ISharedImages.IMG_LCL_LINKTO_HELP));
// create a tooltip
final ToolTip tooltip = new FormToolTip(propertyHelp, String.format("Help for field %s",
property.displayName().equals("") ? fieldInfo.getFieldName() : property.displayName()), help.displayHelpShort(), help.displayHelpLong());
tooltip.setHideOnMouseDown(false);
data = new FormData();
data.top = new FormAttachment(createdControl, 0, SWT.TOP);
data.left = new FormAttachment(createdControl, 0);
propertyHelp.setLayoutData(data);
propertyHelp.addMouseListener(new MouseListener() {
@Override
public void mouseUp(MouseEvent e) {
}
@Override
public void mouseDown(MouseEvent e) {
tooltip.show(new Point(0, 0));
}
@Override
public void mouseDoubleClick(MouseEvent e) {
}