public void createPartControl(Composite parent) {
styledText = new StyledText(parent, SWT.WRAP);
styledText.setText("Client Console...\n");
styledText.setEditable(false);
ConsoleService.getInstance().addMessageListener(new IConsoleListener() {
public void handleMessage(int type, final String message,
Exception e) {
if (type == ConsoleService.CLIENT_MSG) {
// as message may no come from UI thread this hack is needed