this.textField = new Text( nestedComposite, style );
this.textField.setLayoutData( gdfill() );
decorator.addEditorControl( this.textField, true );
final Serialization serialization = property.definition().getAnnotation( Serialization.class );
final TextOverlayPainter.Controller textOverlayPainterController = new TextOverlayPainter.Controller()
{
@Override
public boolean isHyperlinkEnabled()
{
return ( jumpActionHandler == null ? false : jumpActionHandler.isEnabled() );
}
@Override
public void handleHyperlinkEvent()
{
if( jumpActionHandler != null )
{
jumpActionHandler.execute( TextFieldPropertyEditorPresentation.this );
}
}
@Override
public String overlay()
{
String def = property.disposed() ? null : property.getDefaultText();
if( def != null && isSensitiveData )
{
final StringBuilder buf = new StringBuilder();
for( int i = 0, n = def.length(); i < n; i++ )
{
buf.append( "\u25CF" );
}
def = buf.toString();
}
if( def == null && serialization != null )
{
def = serialization.primary();
}
return def;
}
};