use of edu.stanford.bmir.protege.web.shared.renderer.GetEntityRenderingAction in project webprotege by protegeproject.
the class ClassNameFieldEditor method setValue.
@Override
public void setValue(FormDataValue object) {
Optional<OWLEntity> entity = object.asOWLEntity();
entity.ifPresent(e -> {
dispatchServiceManager.execute(new GetEntityRenderingAction(projectId, e), result -> editor.setValue(result.getEntityData()));
});
if (!entity.isPresent()) {
editor.clearValue();
}
}
Aggregations