@Override
public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) {
try {
LearnerGraphND grOrig = graphsOrig.get(currentGraph);LearnerGraphND grNew = new LearnerGraphND(grOrig,grOrig.config);
final String moduleName = grOrig.config.getErlangModuleName()+":";
final ConvertALabel converter = ErlangModule.loadModule(grOrig.config).behaviour.new ConverterModToErl();
AbstractLearnerGraph.interpretLabelsOnGraph(grOrig,grNew,new Transform.ConvertLabel(new ConvertALabel() {
@Override
public Label convertLabelToLabel(Label label) {
ErlangLabel lbl = (ErlangLabel)converter.convertLabelToLabel(label);
return new ErlangLabel(null, lbl.callName.replace(moduleName, ""), lbl.input, lbl.expectedOutput);
}
}));
grNew.setName(grOrig.getNameNotNull()+"-nomodule");
updateFrameWithPos(grNew, strippedFrameNumber++);