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