public RefactoringStatus checkInitialConditions(final IProgressMonitor pm)
throws CoreException, OperationCanceledException {
// FIXME: what kind of preconditions do I need?
final IErlMemberSelection sel = (IErlMemberSelection) GlobalParameters
.getWranglerSelection();
final StateDataToRecordRpcMessage message = runFirst(sel);
if (!message.isSuccessful()) {
return RefactoringStatus.createFatalErrorStatus(message.getMessageString());
}
fieldCount = message.getFieldCount();
stateFuns = message.getStateFuns();
return new RefactoringStatus();
}