use of edu.stanford.bmir.protege.web.shared.dispatch.actions.GetNamedIndividualFrameResult in project webprotege by protegeproject.
the class GetNamedIndividualFrameActionHandler method execute.
@Nonnull
@Override
public GetNamedIndividualFrameResult execute(@Nonnull GetNamedIndividualFrameAction action, @Nonnull ExecutionContext executionContext) {
NamedIndividualFrame frame = translator.getFrame(renderingManager.getRendering(action.getSubject()));
String rendering = renderingManager.getShortForm(action.getSubject());
LabelledFrame<NamedIndividualFrame> labelledFrame = new LabelledFrame<>(rendering, frame);
logger.info(BROWSING, "{} {} retrieved NamedIndividual frame for {} ({})", action.getProjectId(), executionContext.getUserId(), action.getSubject(), labelledFrame.getDisplayName());
return new GetNamedIndividualFrameResult(labelledFrame);
}
Aggregations