package jetbrains.mps.samples.customizedDebugger.Highlevel.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_Conversation;
private ConceptPresentation props_Message;
private ConceptPresentation props_Participant;
@Override
@Nullable
public ConceptPresentation getDescriptor(SAbstractConcept c) {
StructureAspectDescriptor structureDescriptor = (StructureAspectDescriptor) myLanguageRuntime.getAspect(jetbrains.mps.smodel.runtime.StructureAspectDescriptor.class);
switch (structureDescriptor.internalIndex(c)) {
case LanguageConceptSwitch.Conversation:
if (props_Conversation == null) {
ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
props_Conversation = cpb.create();
}
return props_Conversation;
case LanguageConceptSwitch.Message:
if (props_Message == null) {
ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
props_Message = cpb.create();
}
return props_Message;
case LanguageConceptSwitch.Participant:
if (props_Participant == null) {
ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
props_Participant = cpb.create();
}
return props_Participant;
}
return null;
}
}