Search in sources :

Example 11 with RProjectConfig

use of org.rstudio.studio.client.projects.model.RProjectConfig in project rstudio by rstudio.

the class BuildToolsWebsitePanel method save.

@Override
void save(RProjectOptions options) {
    RProjectConfig config = options.getConfig();
    config.setWebsitePath(pathSelector_.getText());
    RProjectBuildOptions buildOptions = options.getBuildOptions();
    buildOptions.setPreviewWebsite(chkPreviewAfterBuilding_.getValue());
    buildOptions.setLivePreviewWebsite(chkLivePreviewSite_.getValue());
    buildOptions.setWebsiteOutputFormat(websiteOutputFormat_.getValue());
}
Also used : RProjectBuildOptions(org.rstudio.studio.client.projects.model.RProjectBuildOptions) RProjectConfig(org.rstudio.studio.client.projects.model.RProjectConfig)

Example 12 with RProjectConfig

use of org.rstudio.studio.client.projects.model.RProjectConfig in project rstudio by rstudio.

the class ProjectGeneralPreferencesPane method onApply.

@Override
public boolean onApply(RProjectOptions options) {
    RProjectConfig config = options.getConfig();
    config.setRestoreWorkspace(restoreWorkspace_.getSelectedIndex());
    config.setSaveWorkspace(saveWorkspace_.getSelectedIndex());
    config.setAlwaysSaveHistory(alwaysSaveHistory_.getSelectedIndex());
    config.setTutorialPath(tutorialPath_);
    config.setRVersion(rVersion_);
    return false;
}
Also used : RProjectConfig(org.rstudio.studio.client.projects.model.RProjectConfig)

Example 13 with RProjectConfig

use of org.rstudio.studio.client.projects.model.RProjectConfig in project rstudio by rstudio.

the class ProjectGeneralPreferencesPane method initialize.

@Override
protected void initialize(RProjectOptions options) {
    RProjectConfig config = options.getConfig();
    restoreWorkspace_.setSelectedIndex(config.getRestoreWorkspace());
    saveWorkspace_.setSelectedIndex(config.getSaveWorkspace());
    alwaysSaveHistory_.setSelectedIndex(config.getAlwaysSaveHistory());
    tutorialPath_ = config.getTutorialPath();
    rVersion_ = config.getRVersion();
}
Also used : RProjectConfig(org.rstudio.studio.client.projects.model.RProjectConfig)

Example 14 with RProjectConfig

use of org.rstudio.studio.client.projects.model.RProjectConfig in project rstudio by rstudio.

the class BuildToolsMakefilePanel method load.

@Override
void load(RProjectOptions options) {
    RProjectConfig config = options.getConfig();
    pathSelector_.setText(config.getMakefilePath());
    txtMakefileArgs_.setText(options.getBuildOptions().getMakefileArgs());
}
Also used : RProjectConfig(org.rstudio.studio.client.projects.model.RProjectConfig)

Aggregations

RProjectConfig (org.rstudio.studio.client.projects.model.RProjectConfig)14 RProjectBuildOptions (org.rstudio.studio.client.projects.model.RProjectBuildOptions)3 JsArrayString (com.google.gwt.core.client.JsArrayString)1 ArrayList (java.util.ArrayList)1 RProjectBuildContext (org.rstudio.studio.client.projects.model.RProjectBuildContext)1