ErlangModule m = (ErlangModule) s;
int len = Integer.parseInt(lenField.getText());
boolean exhaustAlphabet = exhaustAlphabetBox.isSelected();
boolean useOutputMatching = outputMatchingBox.isSelected();
EXPANSIONOFANY expansion = ((InnerAlphabetModel)anyAlphabet.getModel()).getSelectedExpansion();
System.out.println("Generating traces for " + m.name + "...");
String tracefile = m.name + ".traces";
if (exhaustiveButton.isSelected()) {
ErlangTraceGenerator.genComplete(m, new File(tracefile), len, useOutputMatching, expansion);
} else {