use of edu.stanford.bmir.protege.web.client.upload.FileUploadResponse in project webprotege by protegeproject.
the class CreateNewProjectPresenter method handleSourcesUploadComplete.
private void handleSourcesUploadComplete(FormPanel.SubmitCompleteEvent event, ProjectCreatedHandler projectCreatedHandler) {
FileUploadResponse response = new FileUploadResponse(event.getResults());
if (response.wasUploadAccepted()) {
DocumentId documentId = response.getDocumentId();
NewProjectSettings newProjectSettings = new NewProjectSettings(loggedInUserManager.getLoggedInUserId(), view.getProjectName(), view.getProjectDescription(), documentId);
submitCreateNewProjectRequest(newProjectSettings, projectCreatedHandler);
} else {
MessageBox.showAlert("Upload Failed", response.getUploadRejectedMessage());
}
}
Aggregations