use of com.ericsson.otp.erlang.OtpErlangFloat in project erlide_eclipse by erlang.
the class SimilarSearchAction method callRefactoring.
@Override
protected IResultParser callRefactoring() throws WranglerRpcParsingException, CoreException, IOException, WranglerWarningException {
final IErlMemberSelection sel = (IErlMemberSelection) GlobalParameters.getWranglerSelection();
final WranglerRefactoringBackend backend = WranglerBackendManager.getRefactoringBackend();
RpcResult result = null;
String functionName;
if (onlyInFile) {
functionName = "simi_expr_search_in_buffer_eclipse";
} else {
functionName = "simi_expr_search_in_dirs_eclipse";
}
result = backend.callWithoutParser(WranglerRefactoringBackend.UNLIMITED_TIMEOUT, functionName, "sxxxxi", sel.getFilePath(), sel.getSelectionRange().getStartPos(), sel.getSelectionRange().getEndPos(), new OtpErlangFloat(simScore), sel.getSearchPath(), GlobalParameters.getTabWidth());
if (result.isOk()) {
return new SimilarExpressionSearchParser(result.getValue());
}
throw new WranglerRpcParsingException("RPC error");
}
Aggregations