use of edu.stanford.bmir.protege.web.shared.dispatch.actions.GetOntologyAnnotationsAction in project webprotege by protegeproject.
the class OntologyAnnotationsPortletPresenter method updateView.
private void updateView() {
dispatchServiceManager.execute(new GetOntologyAnnotationsAction(getProjectId()), result -> {
LinkedHashSet<PropertyAnnotationValue> object = new LinkedHashSet<>(result.getAnnotations());
if (!lastSet.isPresent() || !annotationsView.getValue().equals(Optional.of(object))) {
lastSet = Optional.of(new ArrayList<>(object));
annotationsView.setValue(object);
}
});
}
Aggregations