use of com.google.gwt.json.client.JSONNumber in project rstudio by rstudio.
the class RemoteServer method svnShow.
@Override
public void svnShow(int rev, boolean noSizeWarning, ServerRequestCallback<String> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONNumber(rev));
params.set(1, JSONBoolean.getInstance(noSizeWarning));
sendRequest(RPC_SCOPE, SVN_SHOW, params, requestCallback);
}
use of com.google.gwt.json.client.JSONNumber in project rstudio by rstudio.
the class RemoteServer method getObjectDefinition.
public void getObjectDefinition(String line, int pos, ServerRequestCallback<ObjectDefinition> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(line));
params.set(1, new JSONNumber(pos));
sendRequest(RPC_SCOPE, GET_FUNCTION_DEFINITION, params, requestCallback);
}
use of com.google.gwt.json.client.JSONNumber in project rstudio by rstudio.
the class RemoteServer method getHelp.
public void getHelp(String topic, String packageName, int options, ServerRequestCallback<HelpInfo> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(topic));
if (packageName != null)
params.set(1, new JSONString(packageName));
else
params.set(1, JSONNull.getInstance());
params.set(2, new JSONNumber(options));
sendRequest(RPC_SCOPE, GET_HELP, params, requestCallback);
}
use of com.google.gwt.json.client.JSONNumber in project rstudio by rstudio.
the class RemoteServer method setEnvironmentFrame.
@Override
public void setEnvironmentFrame(int frame, ServerRequestCallback<Void> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONNumber(frame));
sendRequest(RPC_SCOPE, SET_ENVIRONMENT_FRAME, params, requestCallback);
}
use of com.google.gwt.json.client.JSONNumber in project rstudio by rstudio.
the class RemoteServer method searchHistoryArchiveByPrefix.
public void searchHistoryArchiveByPrefix(String prefix, long maxEntries, boolean uniqueOnly, ServerRequestCallback<RpcObjectList<HistoryEntry>> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(prefix));
params.set(1, new JSONNumber(maxEntries));
params.set(2, JSONBoolean.getInstance(uniqueOnly));
sendRequest(RPC_SCOPE, SEARCH_HISTORY_ARCHIVE_BY_PREFIX, params, requestCallback);
}
Aggregations