Search in sources :

Example 11 with JSONNumber

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);
}
Also used : JSONArray(com.google.gwt.json.client.JSONArray) JSONNumber(com.google.gwt.json.client.JSONNumber) JSONString(com.google.gwt.json.client.JSONString)

Example 12 with JSONNumber

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);
}
Also used : JSONArray(com.google.gwt.json.client.JSONArray) JSONNumber(com.google.gwt.json.client.JSONNumber) JSONString(com.google.gwt.json.client.JSONString)

Example 13 with JSONNumber

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);
}
Also used : JSONArray(com.google.gwt.json.client.JSONArray) JSONNumber(com.google.gwt.json.client.JSONNumber) JSONString(com.google.gwt.json.client.JSONString)

Example 14 with JSONNumber

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);
}
Also used : JSONArray(com.google.gwt.json.client.JSONArray) JSONNumber(com.google.gwt.json.client.JSONNumber) JSONString(com.google.gwt.json.client.JSONString)

Example 15 with JSONNumber

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);
}
Also used : JSONArray(com.google.gwt.json.client.JSONArray) JSONNumber(com.google.gwt.json.client.JSONNumber)

Aggregations

JSONNumber (com.google.gwt.json.client.JSONNumber)163 JSONObject (com.google.gwt.json.client.JSONObject)109 JSONString (com.google.gwt.json.client.JSONString)72 JSONArray (com.google.gwt.json.client.JSONArray)68 JavaScriptObject (com.google.gwt.core.client.JavaScriptObject)19 JsonCallbackEvents (cz.metacentrum.perun.webgui.json.JsonCallbackEvents)18 JsonPostClient (cz.metacentrum.perun.webgui.json.JsonPostClient)18 PerunError (cz.metacentrum.perun.webgui.model.PerunError)17 HashMap (java.util.HashMap)4 Map (java.util.Map)4 JSONValue (com.google.gwt.json.client.JSONValue)3 ArrayList (java.util.ArrayList)3 Token (org.rstudio.core.client.Invalidation.Token)3 ServerError (org.rstudio.studio.client.server.ServerError)3 Breakpoint (org.rstudio.studio.client.common.debugging.model.Breakpoint)2 DiffResult (org.rstudio.studio.client.common.vcs.DiffResult)2 StatusAndPath (org.rstudio.studio.client.common.vcs.StatusAndPath)2 Point (org.rstudio.studio.client.workbench.views.plots.model.Point)2 ClickEvent (com.google.gwt.event.dom.client.ClickEvent)1 ClickHandler (com.google.gwt.event.dom.client.ClickHandler)1