use of com.google.gwt.json.client.JSONArray in project rstudio by rstudio.
the class RemoteServer method executeRAddinNonInteractively.
@Override
public void executeRAddinNonInteractively(String commandId, ServerRequestCallback<Void> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(commandId));
sendRequest(RPC_SCOPE, EXECUTE_R_ADDIN, params, requestCallback);
}
use of com.google.gwt.json.client.JSONArray in project rstudio by rstudio.
the class RemoteServer method setEnvironment.
@Override
public void setEnvironment(String environmentName, ServerRequestCallback<Void> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(environmentName));
sendRequest(RPC_SCOPE, SET_ENVIRONMENT, params, requestCallback);
}
use of com.google.gwt.json.client.JSONArray in project rstudio by rstudio.
the class RemoteServer method isFunction.
public void isFunction(String functionString, String envString, ServerRequestCallback<Boolean> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(functionString));
params.set(1, new JSONString(envString));
sendRequest(RPC_SCOPE, IS_FUNCTION, params, requestCallback);
}
use of com.google.gwt.json.client.JSONArray in project rstudio by rstudio.
the class RemoteServer method connectionExecuteAction.
@Override
public void connectionExecuteAction(ConnectionId connection, String action, ServerRequestCallback<Void> callback) {
JSONArray params = new JSONArray();
params.set(0, new JSONObject(connection));
params.set(1, new JSONString(action));
sendRequest(RPC_SCOPE, CONNECTION_EXECUTE_ACTION, params, callback);
}
use of com.google.gwt.json.client.JSONArray in project rstudio by rstudio.
the class RemoteServer method getSharedProjects.
@Override
public void getSharedProjects(int maxProjects, ServerRequestCallback<JsArray<SharedProjectDetails>> callback) {
JSONArray params = new JSONArray();
params.set(0, new JSONNumber(maxProjects));
sendRequest(RPC_SCOPE, "get_shared_projects", params, callback);
}
Aggregations