Search in sources :

Example 1 with GetOntologyAnnotationsAction

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);
        }
    });
}
Also used : GetOntologyAnnotationsAction(edu.stanford.bmir.protege.web.shared.dispatch.actions.GetOntologyAnnotationsAction) PropertyAnnotationValue(edu.stanford.bmir.protege.web.shared.frame.PropertyAnnotationValue)

Aggregations

GetOntologyAnnotationsAction (edu.stanford.bmir.protege.web.shared.dispatch.actions.GetOntologyAnnotationsAction)1 PropertyAnnotationValue (edu.stanford.bmir.protege.web.shared.frame.PropertyAnnotationValue)1