use of org.rstudio.studio.client.workbench.views.vcs.dialog.ReviewPresenter in project rstudio by rstudio.
the class VCSApplicationWindow method onInitialize.
@Override
protected void onInitialize(LayoutPanel mainPanel, JavaScriptObject params) {
// set our window title
Window.setTitle("RStudio: Review Changes");
// always show scrollbars on the mac
StyleUtils.forceMacScrollbars(mainPanel);
// show the vcs ui in our main panel
VCSApplicationParams vcsParams = params.<VCSApplicationParams>cast();
ReviewPresenter rpres = pReviewPresenter_.get();
ArrayList<StatusAndPath> selected = vcsParams.getSelected();
if (selected.size() > 0)
rpres.setSelectedPaths(selected);
HistoryPresenter hpres = pHistoryPresenter_.get();
if (vcsParams.getHistoryFileFilter() != null)
hpres.setFileFilter(vcsParams.getHistoryFileFilter());
vcsPopupController_ = VCSPopup.show(mainPanel, rpres, hpres, vcsParams.getShowHistory());
}
Aggregations