Search in sources :

Example 1 with HistoryPresenter

use of org.rstudio.studio.client.workbench.views.vcs.dialog.HistoryPresenter 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());
}
Also used : StatusAndPath(org.rstudio.studio.client.common.vcs.StatusAndPath) VCSApplicationParams(org.rstudio.studio.client.vcs.VCSApplicationParams) ReviewPresenter(org.rstudio.studio.client.workbench.views.vcs.dialog.ReviewPresenter) HistoryPresenter(org.rstudio.studio.client.workbench.views.vcs.dialog.HistoryPresenter)

Aggregations

StatusAndPath (org.rstudio.studio.client.common.vcs.StatusAndPath)1 VCSApplicationParams (org.rstudio.studio.client.vcs.VCSApplicationParams)1 HistoryPresenter (org.rstudio.studio.client.workbench.views.vcs.dialog.HistoryPresenter)1 ReviewPresenter (org.rstudio.studio.client.workbench.views.vcs.dialog.ReviewPresenter)1