boolean onlyInFile;
@Override
protected IResultParser callRefactoring() throws WranglerRpcParsingException,
CoreException, IOException, WranglerWarningException {
final WranglerRefactoringBackend backend = WranglerBackendManager
.getRefactoringBackend();
final IErlMemberSelection sel = (IErlMemberSelection) GlobalParameters
.getWranglerSelection();
RpcResult result;
final String functionName = "sim_code_detection_eclipse";
if (onlyInFile) {
final OtpErlangString fp = new OtpErlangString(sel.getFilePath());
final OtpErlangString[] fpa = new OtpErlangString[1];
fpa[0] = fp;
final OtpErlangList fpl = new OtpErlangList(fpa);
result = backend.callWithoutParser(
WranglerRefactoringBackend.UNLIMITED_TIMEOUT, functionName,
"xiiiidxi", fpl, minLen, minToks, minFreq, maxNewVars, simScore,
sel.getSearchPath(), GlobalParameters.getTabWidth());
} else {
result = backend.callWithoutParser(
WranglerRefactoringBackend.UNLIMITED_TIMEOUT, functionName,
"xiiiidxi", sel.getSearchPath(), minLen, minToks, minFreq,
maxNewVars, simScore, sel.getSearchPath(),
GlobalParameters.getTabWidth());
}