Search in sources :

Example 1 with DeleteEntitiesAction

use of edu.stanford.bmir.protege.web.shared.entity.DeleteEntitiesAction in project webprotege by protegeproject.

the class DeleteEntityPresenter method deleteEntity.

private void deleteEntity(@Nonnull OWLEntity cls, @Nonnull TreeWidget<EntityHierarchyNode, OWLEntity> treeWidget) {
    treeWidget.moveSelectionDown();
    dispatchServiceManager.execute(new DeleteEntitiesAction(projectId, singleton(cls)), deleteEntityResult -> {
    });
}
Also used : DeleteEntitiesAction(edu.stanford.bmir.protege.web.shared.entity.DeleteEntitiesAction)

Example 2 with DeleteEntitiesAction

use of edu.stanford.bmir.protege.web.shared.entity.DeleteEntitiesAction in project webprotege by protegeproject.

the class IndividualsListPresenter method deleteSelectedIndividuals.

private void deleteSelectedIndividuals() {
    Collection<OWLNamedIndividualData> selection = view.getSelectedIndividuals();
    Set<OWLEntity> entities = view.getSelectedIndividuals().stream().map(OWLNamedIndividualData::getEntity).collect(toSet());
    dispatchServiceManager.execute(new DeleteEntitiesAction(projectId, entities), view, result -> updateList());
}
Also used : OWLEntity(org.semanticweb.owlapi.model.OWLEntity) OWLNamedIndividualData(edu.stanford.bmir.protege.web.shared.entity.OWLNamedIndividualData) DeleteEntitiesAction(edu.stanford.bmir.protege.web.shared.entity.DeleteEntitiesAction)

Aggregations

DeleteEntitiesAction (edu.stanford.bmir.protege.web.shared.entity.DeleteEntitiesAction)2 OWLNamedIndividualData (edu.stanford.bmir.protege.web.shared.entity.OWLNamedIndividualData)1 OWLEntity (org.semanticweb.owlapi.model.OWLEntity)1