textoutput = createStyledTextWidget(chattingComposite);
textoutput.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
final String fontName = ClientPlugin.getDefault().getPluginPreferences().getString(ClientPlugin.PREF_CHAT_FONT);
if (!(fontName == null) && !(fontName.equals(""))) { //$NON-NLS-1$
final FontRegistry fr = ClientPlugin.getDefault().getFontRegistry();
final FontData[] newFont = {new FontData(fontName)};
fr.put(CHAT_OUTPUT_FONT, newFont);
textoutput.setFont(fr.get(CHAT_OUTPUT_FONT));
}
ClientPlugin.getDefault().getPluginPreferences().addPropertyChangeListener(new FontPropertyChangeListener());
textoutput.append(initText);