Search in sources :

Example 1 with RProjectOptions

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

the class Projects method showProjectOptions.

public void showProjectOptions(final int initialPane) {
    final ProgressIndicator indicator = globalDisplay_.getProgressIndicator("Error Reading Options");
    indicator.onProgress("Reading options...");
    projServer_.readProjectOptions(new SimpleRequestCallback<RProjectOptions>() {

        @Override
        public void onResponseReceived(RProjectOptions options) {
            indicator.onCompleted();
            ProjectPreferencesDialog dlg = pPrefDialog_.get();
            dlg.initialize(options);
            dlg.activatePane(initialPane);
            dlg.showModal();
        }
    });
}
Also used : ProjectPreferencesDialog(org.rstudio.studio.client.projects.ui.prefs.ProjectPreferencesDialog) ProgressIndicator(org.rstudio.core.client.widget.ProgressIndicator) RProjectOptions(org.rstudio.studio.client.projects.model.RProjectOptions)

Aggregations

ProgressIndicator (org.rstudio.core.client.widget.ProgressIndicator)1 RProjectOptions (org.rstudio.studio.client.projects.model.RProjectOptions)1 ProjectPreferencesDialog (org.rstudio.studio.client.projects.ui.prefs.ProjectPreferencesDialog)1