package jetbrains.mps.samples.KajaSceneConstruction.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_AbstractBuilderCommand;
private ConceptPresentation props_BuildWall;
private ConceptPresentation props_DestroyWall;
private ConceptPresentation props_DropMark;
private ConceptPresentation props_PickMark;
@Override
@Nullable
public ConceptPresentation getDescriptor(SAbstractConcept c) {
StructureAspectDescriptor structureDescriptor = (StructureAspectDescriptor) myLanguageRuntime.getAspect(jetbrains.mps.smodel.runtime.StructureAspectDescriptor.class);
switch (structureDescriptor.internalIndex(c)) {
case LanguageConceptSwitch.AbstractBuilderCommand:
if (props_AbstractBuilderCommand == null) {
ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
props_AbstractBuilderCommand = cpb.create();
}
return props_AbstractBuilderCommand;
case LanguageConceptSwitch.BuildWall:
if (props_BuildWall == null) {
ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
props_BuildWall = cpb.create();
}
return props_BuildWall;
case LanguageConceptSwitch.DestroyWall:
if (props_DestroyWall == null) {
ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
props_DestroyWall = cpb.create();
}
return props_DestroyWall;
case LanguageConceptSwitch.DropMark:
if (props_DropMark == null) {
ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
props_DropMark = cpb.create();
}
return props_DropMark;
case LanguageConceptSwitch.PickMark:
if (props_PickMark == null) {
ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
props_PickMark = cpb.create();
}
return props_PickMark;
}
return null;
}
}