if ( label.isDisposed()){
return;
}
if ( new_value == value ){
return;
}
if ( new_value != null &&
value != null &&
new_value.equals( value )){
return;
}
value = new_value;
// '&' chars that occur in the text are treated as accelerators and, for example,
// cause the nect character to be underlined on Windows. This is generally NOT
// the desired behaviour of a label in Azureus so by default we escape them
label.setText( value==null?"":DisplayFormatters.truncateString( value.replaceAll("&", "&&" ), width ));