use of com.google.gwt.json.client.JSONString in project rstudio by rstudio.
the class RemoteServer method getOutputPreview.
public void getOutputPreview(String dataFilePath, String encoding, boolean heading, String separator, String decimal, String quote, String comment, ServerRequestCallback<DataPreviewResult> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(dataFilePath));
params.set(1, new JSONString(encoding));
params.set(2, JSONBoolean.getInstance(heading));
params.set(3, new JSONString(separator));
params.set(4, new JSONString(decimal));
params.set(5, new JSONString(quote));
params.set(6, new JSONString(comment));
sendRequest(RPC_SCOPE, GET_OUTPUT_PREVIEW, params, requestCallback);
}
use of com.google.gwt.json.client.JSONString in project rstudio by rstudio.
the class RemoteServer method replayNotebookChunkPlots.
@Override
public void replayNotebookChunkPlots(String docId, String chunkId, int pixelWidth, int pixelHeight, ServerRequestCallback<String> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(docId));
params.set(1, new JSONString(chunkId));
params.set(2, new JSONNumber(pixelWidth));
params.set(3, new JSONNumber(pixelHeight));
sendRequest(RPC_SCOPE, "replay_notebook_chunk_plots", params, requestCallback);
}
use of com.google.gwt.json.client.JSONString in project rstudio by rstudio.
the class RemoteServer method connectionPreviewTable.
@Override
public void connectionPreviewTable(ConnectionId connectionId, String table, ServerRequestCallback<Void> callback) {
JSONArray params = new JSONArray();
params.set(0, new JSONObject(connectionId));
params.set(1, new JSONString(table));
sendRequest(RPC_SCOPE, CONNECTION_PREVIEW_TABLE, params, callback);
}
use of com.google.gwt.json.client.JSONString in project rstudio by rstudio.
the class RemoteServer method renameFile.
public void renameFile(FileSystemItem file, FileSystemItem targetFile, ServerRequestCallback<Void> requestCallback) {
JSONArray paramArray = new JSONArray();
paramArray.set(0, new JSONString(file.getPath()));
paramArray.set(1, new JSONString(targetFile.getPath()));
sendRequest(RPC_SCOPE, RENAME_FILE, paramArray, requestCallback);
}
use of com.google.gwt.json.client.JSONString in project rstudio by rstudio.
the class RemoteServer method readJSON.
public void readJSON(String path, boolean logErrorIfNotFound, ServerRequestCallback<JavaScriptObject> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(path));
params.set(1, JSONBoolean.getInstance(logErrorIfNotFound));
sendRequest(RPC_SCOPE, "read_json", params, requestCallback);
}
Aggregations