this.statusManager = statusManager;
this.windowUnloadingController = windowClosingController;
this.docOpRecoveryInitiator = docOpRecoveryInitiator;
// Add a window closing listener to wait for client ops to complete.
windowUnloadingMessage = new Message() {
@Override
public String getMessage() {
if (unackedDocOps.size() > 0) {
return
"You have changes that are still saving and will be lost if you leave this page now.";