Package edu.stanford.bmir.protege.web.client.ui.ontology.entity

Examples of edu.stanford.bmir.protege.web.client.ui.ontology.entity.CreateEntityDialogController$CreateEntityHandler


            }
        });
    }

    private void handleCreateIndividuals() {
        WebProtegeDialog.showDialog(new CreateEntityDialogController(EntityType.NAMED_INDIVIDUAL, new CreateEntityDialogController.CreateEntityHandler() {
            @Override
            public void handleCreateEntity(CreateEntityInfo createEntityInfo) {
                final Set<String> browserTexts = createEntityInfo.getBrowserTexts();
                DispatchServiceManager.get().execute(new CreateNamedIndividualsAction(projectId, currentType, browserTexts), new AbstractWebProtegeAsyncCallback<CreateNamedIndividualsResult>() {
                    @Override
View Full Code Here


    }


    private void createSubClasses() {
        WebProtegeDialog.showDialog(new CreateEntityDialogController(EntityType.CLASS, new CreateEntityDialogController.CreateEntityHandler() {
            @Override
            public void handleCreateEntity(CreateEntityInfo createEntityInfo) {
                final OWLClass superCls = getSelectedClass();
                final Set<String> browserTexts = new HashSet<String>(createEntityInfo.getBrowserTexts());
                if (browserTexts.size() > 1) {
View Full Code Here

        Optional<EntityType<?>> selectedEntityType = getSelectedEntityType();
        if (!selectedEntityType.isPresent()) {
            MessageBox.alert("Please select a property in the tree first");
            return;
        }
        WebProtegeDialog.showDialog(new CreateEntityDialogController(selectedEntityType.get(), new CreateEntityDialogController.CreateEntityHandler() {
            @Override
            public void handleCreateEntity(CreateEntityInfo createEntityInfo) {
                handleCreateProperty(createEntityInfo);
            }
        }));
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.client.ui.ontology.entity.CreateEntityDialogController$CreateEntityHandler

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.