Search in sources :

Example 1 with VCSApplicationParams

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));
}
Also used : VCSApplicationParams(org.rstudio.studio.client.vcs.VCSApplicationParams) Size(org.rstudio.core.client.Size)

Example 2 with VCSApplicationParams

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());
}
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)

Example 3 with VCSApplicationParams

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));
}
Also used : VCSApplicationParams(org.rstudio.studio.client.vcs.VCSApplicationParams) Size(org.rstudio.core.client.Size)

Aggregations

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