new Runnable() {
public void run() {
// Declare the standard error client here.
bus.subscribe("ClientErrorService",
new MessageCallback() {
public void callback(Message message) {
String errorMessage = message.get(String.class, MessageParts.ErrorMessage);
PopupPanel popup = new PopupPanel();
popup.add(new HTML(errorMessage));
popup.center();
}
}
);
// The main workspace listener
bus.subscribe(Workspace.SUBJECT, new MessageCallback() {
public void callback(Message message)
{
switch(LayoutCommands.valueOf(message.getCommandType()))
{