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

Examples of edu.stanford.bmir.protege.web.client.project.Project


        getProjectConfiguration();
    }


    protected void createOntolgyForm() {
        Project project = ProjectManager.get().getProject(projectId).get();
        List<AbstractTab> tabs = project.getLayoutManager().createTabs(project.getProjectLayoutConfiguration());
        for (AbstractTab tab : tabs) {
            addTab(tab);
            updateTabStyle(tab);
        }
        if (tabs.size() > 0) {
            activate(0);
        }
        if (UIUtil.getBooleanConfigurationProperty(project.getProjectLayoutConfiguration(), SHOW_ONTOLOGY_TOOLBAR, true) ) {
            createToolbarButtons();
        }
        doLayout();
    }
View Full Code Here


            }
            doLayout();
        }

        public AbstractTab createTab() {
            final Project project = getProject();
            UserDefinedTab userDefinedTab = new UserDefinedTab(project);
            TabConfiguration userDefinedTabConfiguration = getUserDefinedTabConfiguration();
            project.getLayoutManager().setupTab(userDefinedTab, userDefinedTabConfiguration);
            project.getProjectLayoutConfiguration().addTab(userDefinedTabConfiguration);
            return userDefinedTab;
        }
View Full Code Here

            }

            @Override
            public void onSuccess() {
                for (ProjectDisplayImpl ontologyTabPanel : projectId2ProjectPanelMap.values()) {
                    Project project = ontologyTabPanel.getProject();
                    ProjectManager.get().unloadProject(project.getProjectId());
                    hideTabStripItem(ontologyTabPanel);
                    ontologyTabPanel.hide();
                    ontologyTabPanel.destroy();
                }
                projectId2ProjectPanelMap.clear();
View Full Code Here

        ProjectId projectId = activeProjectId.get();
        final Optional<Project> activeProject = ProjectManager.get().getProject(projectId);
        if(!activeProject.isPresent()) {
            return false;
        }
        Project project = activeProject.get();
        return project.hasWritePermission();
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.client.project.Project

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.