Search in sources :

Example 1 with PackageInstallRequest

use of org.rstudio.studio.client.workbench.views.packages.model.PackageInstallRequest in project rstudio by rstudio.

the class InstallPackageDialog method collectInput.

@Override
protected PackageInstallRequest collectInput() {
    // package install options
    String libraryPath = installContext_.getWriteableLibraryPaths().get(libraryListBox_.getSelectedIndex());
    boolean installDependencies = installDependenciesCheckBox_.getValue();
    PackageInstallOptions options = PackageInstallOptions.create(installFromRepository(), libraryPath, installDependencies);
    if (installFromRepository()) {
        return new PackageInstallRequest(packagesTextBox_.getItems(), options);
    } else {
        return new PackageInstallRequest(archiveFilePath_, options);
    }
}
Also used : PackageInstallRequest(org.rstudio.studio.client.workbench.views.packages.model.PackageInstallRequest) JsArrayString(com.google.gwt.core.client.JsArrayString) PackageInstallOptions(org.rstudio.studio.client.workbench.views.packages.model.PackageInstallOptions)

Aggregations

JsArrayString (com.google.gwt.core.client.JsArrayString)1 PackageInstallOptions (org.rstudio.studio.client.workbench.views.packages.model.PackageInstallOptions)1 PackageInstallRequest (org.rstudio.studio.client.workbench.views.packages.model.PackageInstallRequest)1