use of org.rstudio.studio.client.vcs.VCSApplicationParams in project rstudio by rstudio.
the class GitPresenter method showReviewPane.
private void showReviewPane(boolean showHistory, FileSystemItem historyFileFilter, ArrayList<StatusAndPath> items) {
// setup params
VCSApplicationParams params = VCSApplicationParams.create(showHistory, historyFileFilter, items);
// open the window
satelliteManager_.openSatellite("review_changes", params, new Size(1000, 1200));
}
use of org.rstudio.studio.client.vcs.VCSApplicationParams 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());
}
use of org.rstudio.studio.client.vcs.VCSApplicationParams in project rstudio by rstudio.
the class SVNPresenter method showReviewPane.
private void showReviewPane(boolean showHistory, FileSystemItem historyFileFilter, ArrayList<StatusAndPath> items) {
// setup params
VCSApplicationParams params = VCSApplicationParams.create(showHistory, historyFileFilter, items);
// open the window
satelliteManager_.openSatellite("review_changes", params, new Size(1000, 1200));
}
Aggregations