use of com.google.gwt.json.client.JSONNumber in project rstudio by rstudio.
the class RemoteServer method svnHistory.
@Override
public void svnHistory(int revision, FileSystemItem path, int skip, int maxentries, String searchText, ServerRequestCallback<RpcObjectList<CommitInfo>> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONNumber(revision));
params.set(1, path == null ? JSONNull.getInstance() : new JSONString(path.getPath()));
params.set(2, new JSONNumber(skip));
params.set(3, new JSONNumber(maxentries));
params.set(4, new JSONString(StringUtil.notNull(searchText)));
sendRequest(RPC_SCOPE, SVN_HISTORY, params, requestCallback);
}
use of com.google.gwt.json.client.JSONNumber in project rstudio by rstudio.
the class RemoteServer method gitHistory.
@Override
public void gitHistory(String spec, FileSystemItem fileFilter, int skip, int maxentries, String searchText, ServerRequestCallback<RpcObjectList<CommitInfo>> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(spec));
params.set(1, fileFilter != null ? new JSONString(fileFilter.getPath()) : JSONNull.getInstance());
params.set(2, new JSONNumber(skip));
params.set(3, new JSONNumber(maxentries));
params.set(4, new JSONString(StringUtil.notNull(searchText)));
sendRequest(RPC_SCOPE, GIT_HISTORY, params, requestCallback);
}
use of com.google.gwt.json.client.JSONNumber in project rstudio by rstudio.
the class RemoteServer method searchHistoryArchive.
public void searchHistoryArchive(String query, long maxEntries, ServerRequestCallback<RpcObjectList<HistoryEntry>> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(query));
params.set(1, new JSONNumber(maxEntries));
sendRequest(RPC_SCOPE, SEARCH_HISTORY_ARCHIVE, params, requestCallback);
}
use of com.google.gwt.json.client.JSONNumber in project rstudio by rstudio.
the class RemoteServer method findCppUsages.
public void findCppUsages(String docPath, int line, int column, ServerRequestCallback<Void> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(docPath));
params.set(1, new JSONNumber(line));
params.set(2, new JSONNumber(column));
sendRequest(RPC_SCOPE, "find_cpp_usages", params, requestCallback);
}
use of com.google.gwt.json.client.JSONNumber 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);
}
Aggregations