Search in sources :

Example 1 with GetDeprecatedEntitiesAction

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

the class DeprecatedEntitiesPresenter method refillView.

private void refillView() {
    view.setEntities(Collections.emptyList());
    int pageNumber = view.getPageNumber();
    dispatchServiceManager.execute(new GetDeprecatedEntitiesAction(getProjectId(), PageRequest.requestPageWithSize(pageNumber, PAGE_SIZE), Sets.newHashSet(EntityType.values())), this, result -> {
        Page<OWLEntityData> page = result.getDeprecatedEntities();
        view.setEntities(page.getPageElements());
        view.setPageNumber(page.getPageNumber());
        view.setPageCount(page.getPageCount());
    });
}
Also used : GetDeprecatedEntitiesAction(edu.stanford.bmir.protege.web.shared.entity.GetDeprecatedEntitiesAction) OWLEntityData(edu.stanford.bmir.protege.web.shared.entity.OWLEntityData)

Aggregations

GetDeprecatedEntitiesAction (edu.stanford.bmir.protege.web.shared.entity.GetDeprecatedEntitiesAction)1 OWLEntityData (edu.stanford.bmir.protege.web.shared.entity.OWLEntityData)1