this.viewManager = ExplorerApp.get().getViewManager();
}
public void toolBarItemSelected() {
DeploymentUploadReceiver receiver = new DeploymentUploadReceiver();
UploadPopupWindow uploadPopupWindow = new UploadPopupWindow(
i18nManager.getMessage(Messages.DEPLOYMENT_UPLOAD),
i18nManager.getMessage(Messages.DEPLOYMENT_UPLOAD_DESCRIPTION),
receiver);
// The receiver also acts as a listener for the end of the upload
// so it can switch to the new deployment page
uploadPopupWindow.addFinishedListener(receiver);
viewManager.showPopupWindow(uploadPopupWindow);
}