package jetbrains.mps.test.mainLang.migration;

/*Generated by MPS */

import jetbrains.mps.lang.migration.runtime.base.MigrationScriptBase;
import org.jetbrains.mps.openapi.model.SNode;
import org.jetbrains.mps.openapi.module.SModule;
import java.io.File;
import java.io.IOException;
import jetbrains.mps.lang.migration.runtime.base.MigrationScriptReference;
import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory;

public class SecondMigration extends MigrationScriptBase {
  public String getCaption() {
    return "SecondMigration";
  }
  @Override
  public boolean isRerunnable() {
    return false;
  }
  public SNode execute(final SModule m) {
    doExecute(m);
    return null;
  }
  public void doExecute(final SModule m) {
    try {
      if (FirstMigration.firstFile(m).exists()) {
        new File(FirstMigration.projectHomePath(m), "result.txt").createNewFile();
      }
    } catch (IOException e) {
    }
  }
  public MigrationScriptReference getDescriptor() {
    return new MigrationScriptReference(MetaAdapterFactory.getLanguage(0xca03d2f0cb014ae7L, 0xb688d32e45bbfcc1L, "jetbrains.mps.test.mainLang"), 1);
  }

}
