package jetbrains.mps.samples.generator_demo.demoLang6.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_Button; private ConceptPresentation props_Label; @Override @Nullable public ConceptPresentation getDescriptor(SAbstractConcept c) { StructureAspectDescriptor structureDescriptor = (StructureAspectDescriptor) myLanguageRuntime.getAspect(jetbrains.mps.smodel.runtime.StructureAspectDescriptor.class); switch (structureDescriptor.internalIndex(c)) { case LanguageConceptSwitch.Button: if (props_Button == null) { ConceptPresentationBuilder cpb = new ConceptPresentationBuilder(); props_Button = cpb.create(); } return props_Button; case LanguageConceptSwitch.Label: if (props_Label == null) { ConceptPresentationBuilder cpb = new ConceptPresentationBuilder(); props_Label = cpb.create(); } return props_Label; } return null; } }