void updateTree(final GroupEvent updated) {
UIUtil.invokeLater(new Runnable() {
public void run() {
TreeState state = new TreeState(myTree);
if (updated instanceof GroupEvent.Updated) {
GroupEvent.Updated evt = ((GroupEvent.Updated) updated);
state.addReplacement(evt.getOldGroup(), evt.getNewGroup());
}
setRoot(new RootNode(myUserModel, myLocalMessageDispatcher));
state.restore(myTree);
}
});
}