public void appendText(ChatLine text) {
if (text == null || textoutput == null || textoutput.isDisposed()) {
return;
}
final IUser user = text.getOriginator();
final StyleRange range = new StyleRange();
range.start = textoutput.getText().length();
if (user != null) {
String prefix = user.getNickname() + ": "; //$NON-NLS-1$
final String date = text.getDate();
if (date != null && !date.equals("")) { //$NON-NLS-1$
prefix = date + ' ' + prefix;
}
range.length = prefix.length();
range.foreground = user.equals(view.userdata) ? meColor : otherColor;
textoutput.append(prefix);
textoutput.setStyleRange(range);
textoutput.append(text.getText());
} else {
String content = text.getText();