use of com.google.gwt.json.client.JSONArray in project rstudio by rstudio.
the class RemoteServer method replayNotebookPlots.
@Override
public void replayNotebookPlots(String docId, String initialChunkId, int pixelWidth, int pixelHeight, ServerRequestCallback<String> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(docId));
params.set(1, new JSONString(initialChunkId));
params.set(2, new JSONNumber(pixelWidth));
params.set(3, new JSONNumber(pixelHeight));
sendRequest(RPC_SCOPE, "replay_notebook_plots", params, requestCallback);
}
use of com.google.gwt.json.client.JSONArray in project rstudio by rstudio.
the class RemoteServer method findFunctionInSearchPath.
public void findFunctionInSearchPath(String line, int pos, String fromWhere, ServerRequestCallback<SearchPathFunctionDefinition> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(line));
params.set(1, new JSONNumber(pos));
params.set(2, fromWhere != null ? new JSONString(fromWhere) : JSONNull.getInstance());
sendRequest(RPC_SCOPE, FIND_FUNCTION_IN_SEARCH_PATH, params, requestCallback);
}
use of com.google.gwt.json.client.JSONArray in project rstudio by rstudio.
the class RemoteServer method sendRequest.
private <T> void sendRequest(String scope, String method, long param, ServerRequestCallback<T> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONNumber(param));
sendRequest(scope, method, params, requestCallback);
}
use of com.google.gwt.json.client.JSONArray in project rstudio by rstudio.
the class RemoteServer method packratBootstrap.
@Override
public void packratBootstrap(String dir, boolean enter, ServerRequestCallback<Void> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(dir));
params.set(1, JSONBoolean.getInstance(enter));
sendRequest(RPC_SCOPE, PACKRAT_BOOTSTRAP, params, requestCallback);
}
use of com.google.gwt.json.client.JSONArray in project rstudio by rstudio.
the class RemoteServer method processSetCaption.
@Override
public void processSetCaption(String handle, String caption, ServerRequestCallback<Void> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(handle));
params.set(1, new JSONString(caption));
sendRequest(RPC_SCOPE, PROCESS_SET_CAPTION, params, requestCallback);
}
Aggregations