use of com.google.gwt.json.client.JSONArray in project rstudio by rstudio.
the class RemoteServer method manipulatorPlotClicked.
public void manipulatorPlotClicked(int x, int y, ServerRequestCallback<Void> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONNumber(x));
params.set(1, new JSONNumber(y));
sendRequest(RPC_SCOPE, MANIPULATOR_PLOT_CLICKED, params, requestCallback);
}
use of com.google.gwt.json.client.JSONArray in project rstudio by rstudio.
the class RemoteServer method setManipulatorValues.
public void setManipulatorValues(JSONObject values, ServerRequestCallback<Void> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, values);
sendRequest(RPC_SCOPE, SET_MANIPULATOR_VALUES, params, requestCallback);
}
use of com.google.gwt.json.client.JSONArray in project rstudio by rstudio.
the class RemoteServer method getSourceTemplate.
public void getSourceTemplate(String name, String template, ServerRequestCallback<String> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(name));
params.set(1, new JSONString(template));
sendRequest(RPC_SCOPE, GET_SOURCE_TEMPLATE, params, requestCallback);
}
use of com.google.gwt.json.client.JSONArray in project rstudio by rstudio.
the class RemoteServer method log.
public void log(int logEntryType, String logEntry, ServerRequestCallback<Void> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONNumber(logEntryType));
params.set(1, new JSONString(logEntry));
sendRequest(LOG_SCOPE, LOG, params, requestCallback);
}
use of com.google.gwt.json.client.JSONArray in project rstudio by rstudio.
the class RemoteServer method gitStage.
public void gitStage(ArrayList<String> paths, ServerRequestCallback<Void> requestCallback) {
JSONArray jsonPaths = JSONUtils.toJSONStringArray(paths);
JSONArray params = new JSONArray();
params.set(0, jsonPaths);
sendRequest(RPC_SCOPE, GIT_STAGE, params, requestCallback);
}
Aggregations