Search in sources :

Example 1 with NewRSConnectAccountResult

use of org.rstudio.studio.client.rsconnect.model.NewRSConnectAccountResult in project rstudio by rstudio.

the class NewRSConnectLocalPage method collectIntermediateInput.

@Override
public void collectIntermediateInput(final ProgressIndicator indicator, final OperationWithInput<NewRSConnectAccountResult> onResult) {
    // get the current configuration and abort if it's not valid
    final NewRSConnectAccountResult result = collectInput();
    if (!validate(result)) {
        onResult.execute(result);
        return;
    }
    setIntermediateResult(result);
    onResult.execute(result);
}
Also used : NewRSConnectAccountResult(org.rstudio.studio.client.rsconnect.model.NewRSConnectAccountResult)

Example 2 with NewRSConnectAccountResult

use of org.rstudio.studio.client.rsconnect.model.NewRSConnectAccountResult in project rstudio by rstudio.

the class RSAccountConnector method showShinyAppsDialog.

// Private methods --------------------------------------------------------
private void showShinyAppsDialog(final OperationWithInput<Boolean> onCompleted) {
    RSConnectCloudDialog dialog = new RSConnectCloudDialog(new ProgressOperationWithInput<NewRSConnectAccountResult>() {

        @Override
        public void execute(NewRSConnectAccountResult input, ProgressIndicator indicator) {
            processDialogResult(input, indicator, onCompleted);
        }
    }, new Operation() {

        @Override
        public void execute() {
            onCompleted.execute(false);
        }
    });
    dialog.showModal();
}
Also used : ProgressIndicator(org.rstudio.core.client.widget.ProgressIndicator) Operation(org.rstudio.core.client.widget.Operation) NewRSConnectAccountResult(org.rstudio.studio.client.rsconnect.model.NewRSConnectAccountResult)

Aggregations

NewRSConnectAccountResult (org.rstudio.studio.client.rsconnect.model.NewRSConnectAccountResult)2 Operation (org.rstudio.core.client.widget.Operation)1 ProgressIndicator (org.rstudio.core.client.widget.ProgressIndicator)1