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 -> {
});
}
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());
}
Aggregations