package ref.structure; /*Generated by MPS */ import jetbrains.mps.smodel.runtime.ConceptPresentationAspectBase; import jetbrains.mps.smodel.runtime.ConceptPresentation; import org.jetbrains.annotations.Nullable; import org.jetbrains.mps.openapi.language.SAbstractConcept; import jetbrains.mps.smodel.runtime.ConceptPresentationBuilder; public class ConceptPresentationAspectImpl extends ConceptPresentationAspectBase { private ConceptPresentation props_NewComponentRef; private ConceptPresentation props_OldComponentRef; @Override @Nullable public ConceptPresentation getDescriptor(SAbstractConcept c) { StructureAspectDescriptor structureDescriptor = (StructureAspectDescriptor) myLanguageRuntime.getAspect(jetbrains.mps.smodel.runtime.StructureAspectDescriptor.class); switch (structureDescriptor.internalIndex(c)) { case LanguageConceptSwitch.NewComponentRef: if (props_NewComponentRef == null) { ConceptPresentationBuilder cpb = new ConceptPresentationBuilder(); props_NewComponentRef = cpb.create(); } return props_NewComponentRef; case LanguageConceptSwitch.OldComponentRef: if (props_OldComponentRef == null) { ConceptPresentationBuilder cpb = new ConceptPresentationBuilder(); cpb.deprecated(true); props_OldComponentRef = cpb.create(); } return props_OldComponentRef; } return null; } }