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