package jetbrains.mps.lang.text.typesystem;

/*Generated by MPS */

import jetbrains.mps.errors.QuickFix_Runtime;
import jetbrains.mps.smodel.SNodePointer;
import org.jetbrains.mps.openapi.model.SNode;
import jetbrains.mps.lang.smodel.generator.smodelAdapter.SNodeOperations;
import jetbrains.mps.lang.text.behavior.Line__BehaviorDescriptor;
import jetbrains.mps.smodel.action.SNodeFactoryOperations;
import org.jetbrains.mps.openapi.language.SConcept;
import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory;

public class TurnIntoBulletLine_QuickFix extends QuickFix_Runtime {
  public TurnIntoBulletLine_QuickFix() {
    super(new SNodePointer("r:d1be8bd3-dfc7-4e90-8b90-965089cd0937(jetbrains.mps.lang.text.typesystem)", "1094247804558413413"));
  }
  public void execute(SNode node) {
    SNode l = SNodeOperations.as(node, CONCEPTS.Line$yC);
    Line__BehaviorDescriptor.removeTextElementAt_idWJz9iAXbMU.invoke(l, ((int) 0));
    SNodeFactoryOperations.replaceWithNewChild(l, CONCEPTS.BulletLine$ef);
  }

  private static final class CONCEPTS {
    /*package*/ static final SConcept Line$yC = MetaAdapterFactory.getConcept(0xc7fb639fbe784307L, 0x89b0b5959c3fa8c8L, 0x2331694e561af166L, "jetbrains.mps.lang.text.structure.Line");
    /*package*/ static final SConcept BulletLine$ef = MetaAdapterFactory.getConcept(0xc7fb639fbe784307L, 0x89b0b5959c3fa8c8L, 0xf2f8c94a6f2a8faL, "jetbrains.mps.lang.text.structure.BulletLine");
  }
}
