use of edu.stanford.bmir.protege.web.shared.frame.GetDataPropertyFrameResult in project webprotege by protegeproject.
the class GetDataPropertyFrameActionHandler method execute.
@Nonnull
@Override
public GetDataPropertyFrameResult execute(@Nonnull GetDataPropertyFrameAction action, @Nonnull ExecutionContext executionContext) {
DataPropertyFrameTranslator translator = translatorProvider.get();
final DataPropertyFrame frame = translator.getFrame(renderingManager.getRendering(action.getSubject()));
String displayName = renderingManager.getBrowserText(action.getSubject());
logger.info(BROWSING, "{} {} retrieved DataProperty frame for {} ({})", action.getProjectId(), executionContext.getUserId(), action.getSubject(), displayName);
return new GetDataPropertyFrameResult(new LabelledFrame<>(displayName, frame));
}
Aggregations