use of com.google.gwt.json.client.JSONString in project rstudio by rstudio.
the class RemoteServer method convertFromYAML.
@Override
public void convertFromYAML(String yaml, ServerRequestCallback<RmdYamlData> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(yaml));
sendRequest(RPC_SCOPE, CONVERT_FROM_YAML, params, requestCallback);
}
use of com.google.gwt.json.client.JSONString 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.JSONString in project rstudio by rstudio.
the class RemoteServer method isPackageLoaded.
public void isPackageLoaded(String packageName, String libName, ServerRequestCallback<Boolean> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(packageName));
params.set(1, new JSONString(libName));
sendRequest(RPC_SCOPE, IS_PACKAGE_LOADED, params, requestCallback);
}
use of com.google.gwt.json.client.JSONString in project rstudio by rstudio.
the class RemoteServer method getCustomParameterHelp.
public void getCustomParameterHelp(String helpHandler, String source, ServerRequestCallback<HelpInfo.Custom> requestCallback) {
JSONArray params = new JSONArray();
params.set(0, new JSONString(helpHandler));
params.set(1, new JSONString(source));
sendRequest(RPC_SCOPE, GET_CUSTOM_PARAMETER_HELP, params, requestCallback);
}
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);
}
Aggregations