{
if( this.textControl.isEnabled() )
{
if( this.hyperlinkActive )
{
final TextStyle style = new TextStyle( this.textControl.getFont(), null, null );
style.underline = true;
style.foreground = JFaceColors.getActiveHyperlinkText( this.display );
style.underlineColor = style.foreground;
paintTextOverlay( event.gc, style, getTextWithOverlay() );
}
else if( ! this.textControl.isFocusControl() && this.textControl.getText().length() == 0 )
{
final String overlay = this.controller.overlay();
if( overlay != null && overlay.length() > 0 )
{
final TextStyle style = new TextStyle( this.textControl.getFont(), null, null );
style.foreground = this.display.getSystemColor( SWT.COLOR_GRAY );
paintTextOverlay( event.gc, style, overlay );
}
}