use of org.rstudio.studio.client.common.GlobalDisplay.NewWindowOptions in project rstudio by rstudio.
the class ViewerPresenter method onViewerZoom.
@Handler
public void onViewerZoom() {
Size windowSize = ZoomUtils.getZoomWindowSize(display_.getViewerFrameSize(), zoomWindowDefaultSize_);
// open and activate window
NewWindowOptions options = new NewWindowOptions();
options.setName("_rstudio_viewer_zoom");
options.setFocus(true);
options.setCallback(new OperationWithInput<WindowEx>() {
@Override
public void execute(WindowEx input) {
zoomWindow_ = input;
}
});
globalDisplay_.openMinimalWindow(display_.getUrl(), false, windowSize.width, windowSize.height, options);
}
Aggregations