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

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


    }

    protected ClassTreePortlet createSelectable() {
        Optional<Project> prj = ProjectManager.get().getProject(projectId);
        if(!prj.isPresent()) {
            throw new UnknownProjectException(projectId);
        }
        ClassTreePortlet treePortlet = new ClassTreePortlet(prj.get(), false, false, false, allowMultipleSelection, topClass);
        treePortlet.setDraggable(false);
        treePortlet.setClosable(false);
        treePortlet.setCollapsible(false);
View Full Code Here


        try {
            READ_LOCK.lock();
            MetaProject metaProject = getMetaProject();
            ProjectInstance pi = metaProject.getProject(projectId.getId());
            if(pi == null) {
                throw new UnknownProjectException(projectId);
            }
            return pi;
        }
        finally {
            READ_LOCK.unlock();
View Full Code Here

    @Override
    public ProjectDetails getProjectDetails(ProjectId projectId) throws UnknownProjectException {
        ProjectInstance pi = metaproject.getProject(projectId.getId());
        if (pi == null) {
            throw new UnknownProjectException(projectId);
        }
        return createProjectDetailsFromProjectInstance(pi);
    }
View Full Code Here

TOP

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

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.