public boolean openDialog( Shell shell )
{
Object value = getValue();
if ( value != null && value instanceof String )
{
TextDialog dialog = new TextDialog( shell, ( String ) value );
if ( dialog.open() == TextDialog.OK && !"".equals( dialog.getText() ) ) //$NON-NLS-1$
{
setValue( dialog.getText() );
return true;
}
}
return false;
}