use of com.google.gwt.json.client.JSONString in project rstudio by rstudio.
the class RemoteServer method getPendingActions.
@Override
public void getPendingActions(String action, String dir, ServerRequestCallback<JsArray<PackratPackageAction>> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(action));
params.set(1, new JSONString(dir));
sendRequest(RPC_SCOPE, GET_PENDING_ACTIONS, params, requestCallback);
}
use of com.google.gwt.json.client.JSONString 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.JSONString 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.JSONString in project rstudio by rstudio.
the class RemoteServer method abort.
public void abort(String nextProj, ServerRequestCallback<Void> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(StringUtil.notNull(nextProj)));
sendRequest(RPC_SCOPE, ABORT, params, requestCallback);
}
use of com.google.gwt.json.client.JSONString in project rstudio by rstudio.
the class RemoteServer method cleanReplayNotebookChunkPlots.
@Override
public void cleanReplayNotebookChunkPlots(String docId, String chunkId, ServerRequestCallback<Void> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(docId));
params.set(1, new JSONString(chunkId));
sendRequest(RPC_SCOPE, "clean_replay_notebook_chunk_plots", params, requestCallback);
}
Aggregations