use of edu.stanford.bmir.protege.web.shared.frame.GetAnnotationPropertyFrameResult in project webprotege by protegeproject.
the class GetAnnotationPropertyFrameActionHandler method execute.
@Nonnull
@Override
public GetAnnotationPropertyFrameResult execute(@Nonnull GetAnnotationPropertyFrameAction action, @Nonnull ExecutionContext executionContext) {
AnnotationPropertyFrameTranslator translator = new AnnotationPropertyFrameTranslator(renderingManager, rootOntology);
AnnotationPropertyFrame frame = translator.getFrame(renderingManager.getRendering(action.getSubject()));
String label = renderingManager.getBrowserText(action.getSubject());
LabelledFrame<AnnotationPropertyFrame> labelledFrame = new LabelledFrame<>(label, frame);
logger.info(BROWSING, "{} {} retrieved AnnotationProperty frame for {} ({})", action.getProjectId(), executionContext.getUserId(), action.getSubject(), labelledFrame.getDisplayName());
return new GetAnnotationPropertyFrameResult(labelledFrame);
}
Aggregations