package jetbrains.mps.lang.checkedName.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.SPropertyOperations;
import jetbrains.mps.checkedName.PropertyReference;
import jetbrains.mps.util.NameUtil;

public class FixNamingPolicy_property_once_QuickFix extends QuickFix_Runtime {
  public FixNamingPolicy_property_once_QuickFix() {
    super(new SNodePointer("r:f922da3a-135f-4fe9-9051-9f018bc5c1bf(jetbrains.mps.lang.checkedName.typesystem)", "1628770029971140695"));
  }
  public String getDescription(SNode node) {
    return ((String) FixNamingPolicy_property_once_QuickFix.this.getField("caption")[0]);
  }
  public void execute(SNode node) {
    SPropertyOperations.assign(((PropertyReference) FixNamingPolicy_property_once_QuickFix.this.getField("property")[0]).getNode(), ((PropertyReference) FixNamingPolicy_property_once_QuickFix.this.getField("property")[0]).getProperty(), NameUtil.captionWithNamingPolicy(SPropertyOperations.getString(((PropertyReference) FixNamingPolicy_property_once_QuickFix.this.getField("property")[0]).getNode(), ((PropertyReference) FixNamingPolicy_property_once_QuickFix.this.getField("property")[0]).getProperty())));
  }
}
