@Override
public RefactoringStatus checkFinalConditions(final IProgressMonitor pm)
throws CoreException, OperationCanceledException {
final IErlSelection sel = GlobalParameters.getWranglerSelection();
final ProcessRpcMessage msg = checkUndecidables((IErlMemberSelection) sel);
if (msg.isSuccessful()) {
changedFiles = msg.getRefactoringChangeset();
return new RefactoringStatus();
} else if (msg.hasUndecidables()) {
undecidables = msg.getMessageString();
final IRefactoringRpcMessage message = run(sel);
changedFiles = message.getRefactoringChangeset();
return RefactoringStatus.createWarningStatus(getUndecidableWarningMessage());
} else {
return RefactoringStatus.createFatalErrorStatus(msg.getMessageString());
}
}