String tooltipText = component.getTooltipText();
// The tooltip text may have been cleared while the timeout was
// outstanding; if so, don't display the tooltip
if (tooltipText != null) {
Tooltip tooltip = new Tooltip(tooltipText);
// TODO Ensure that the tooltip stays on screen
Point mouseLocation = component.getDisplay().getMouseLocation();
tooltip.setLocation(mouseLocation.x + 16, mouseLocation.y);
tooltip.open(component.getWindow());
}
}