Package edu.stanford.bmir.protege.web.shared.project

Examples of edu.stanford.bmir.protege.web.shared.project.ProjectAlreadyRegisteredException


    private void handleCreateProjectFailure(Throwable caught) {
        if(caught instanceof NotSignedInException) {
            MessageBox.alert("You must be signed in to create new projects");
        }
        else if(caught instanceof ProjectAlreadyRegisteredException) {
            ProjectAlreadyRegisteredException ex = (ProjectAlreadyRegisteredException) caught;
            String projectName = ex.getProjectId().getId();
            MessageBox.alert("The project name " + projectName + " is already registered.  Please try a different name.");
        }
        else if(caught instanceof ProjectDocumentExistsException) {
            ProjectDocumentExistsException ex = (ProjectDocumentExistsException) caught;
            String projectName = ex.getProjectId().getId();
            MessageBox.alert("There is already a non-empty project on the server with the id " + projectName + ".  This project has NOT been overwritten.  Please contact the administrator to resolve this issue.");
        }
        else {
            MessageBox.alert(caught.getMessage());
        }
View Full Code Here


    private void handleCreateProjectFailure(Throwable caught) {
        if (caught instanceof NotSignedInException) {
            MessageBox.showAlert("You must be signed in to create new projects.", "Please sign in.");
        }
        else if (caught instanceof ProjectAlreadyRegisteredException) {
            ProjectAlreadyRegisteredException ex = (ProjectAlreadyRegisteredException) caught;
            String projectName = ex.getProjectId().getId();
            MessageBox.showMessage("The project name " + projectName + " is already taken.  Please try a different name.");
        }
        else if (caught instanceof ProjectDocumentExistsException) {
            ProjectDocumentExistsException ex = (ProjectDocumentExistsException) caught;
            String projectName = ex.getProjectId().getId();
            MessageBox.showAlert("Project already exists", "There is already a non-empty project on the server which is named " + projectName + ".  This project has NOT been overwritten.  Please contact the administrator to resolve this issue.");
        }
        else {
            MessageBox.showAlert(caught.getMessage());
        }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.shared.project.ProjectAlreadyRegisteredException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.