profileUi.addControl(EscapeUtils.fromSafeConstant(messages.remove()), new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
participation.first.removeParticipant(participation.second);
// The presenter is configured to destroy itself on view hide.
profileView.hide();
}
});
profileUi.show();
}
}