.getKind() == SelectionKind.FUNCTION_CLAUSE))) {
return RefactoringStatus
.createFatalErrorStatus("Please select an expression!");
}
final IErlMemberSelection sel = (IErlMemberSelection) selection;
ExpressionPosRpcMessage m = new ExpressionPosRpcMessage();
m = (ExpressionPosRpcMessage) WranglerBackendManager.getRefactoringBackend()
.callWithParser(m, "fold_expr_by_loc_eclipse", "siixi",
sel.getFilePath(), sel.getMemberRange().getStartLine(),
sel.getMemberRange().getStartCol(), sel.getSearchPath(),
GlobalParameters.getTabWidth());
if (m.isSuccessful()) {
syntaxTree = m.getSyntaxTree();
positions = m.getPositionDefinitions(sel.getDocument());
selectedPositions = new ArrayList<IErlRange>();
} else {
return RefactoringStatus.createFatalErrorStatus(m.getMessageString());
}
return new RefactoringStatus();