98f9d1083f6828a71fc09d45d7509f12360dc768
[mps/mps.git] / samples / customizedDebugger / languages / jetbrains.mps.samples.customizedDebugger.Bottomline / source_gen / jetbrains / mps / samples / customizedDebugger / Bottomline / Language.java
1 package jetbrains.mps.samples.customizedDebugger.Bottomline;
2
3 /*Generated by MPS */
4
5 import jetbrains.mps.smodel.language.LanguageRuntime;
6 import jetbrains.mps.smodel.adapter.ids.SLanguageId;
7 import java.util.Collection;
8 import org.jetbrains.mps.openapi.language.SLanguage;
9 import jetbrains.mps.smodel.runtime.ILanguageAspect;
10 import jetbrains.mps.smodel.runtime.BehaviorAspectDescriptor;
11 import jetbrains.mps.smodel.runtime.ConstraintsAspectDescriptor;
12 import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor;
13 import jetbrains.mps.samples.customizedDebugger.Bottomline.editor.EditorAspectDescriptorImpl;
14 import jetbrains.mps.smodel.runtime.MakeAspectDescriptor;
15 import jetbrains.mps.samples.customizedDebugger.Bottomline.plugin.FacetAspectDescriptor;
16 import jetbrains.mps.smodel.runtime.StructureAspectDescriptor;
17 import jetbrains.mps.smodel.runtime.ConceptPresentationAspect;
18 import jetbrains.mps.samples.customizedDebugger.Bottomline.structure.ConceptPresentationAspectImpl;
19 import jetbrains.mps.text.rt.TextGenAspectDescriptor;
20 import jetbrains.mps.lang.typesystem.runtime.IHelginsDescriptor;
21 import jetbrains.mps.samples.customizedDebugger.Bottomline.typesystem.TypesystemDescriptor;
22
23 public class Language extends LanguageRuntime {
24   private final SLanguageId myId;
25
26   public Language() {
27     myId = SLanguageId.deserialize("3f028972-a290-4cf2-a87e-9b8f7e56076b");
28   }
29
30   @Override
31   public String getNamespace() {
32     return "jetbrains.mps.samples.customizedDebugger.Bottomline";
33   }
34
35   @Override
36   public int getVersion() {
37     return 0;
38   }
39
40   public SLanguageId getId() {
41     return myId;
42   }
43
44   @Override
45   protected void fillExtendedLanguages(Collection<SLanguage> extendedLanguages) {
46   }
47
48   @Override
49   protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
50     if (aspectClass == BehaviorAspectDescriptor.class) {
51       return aspectClass.cast(new jetbrains.mps.samples.customizedDebugger.Bottomline.behavior.BehaviorAspectDescriptor());
52     }
53     if (aspectClass == ConstraintsAspectDescriptor.class) {
54       return aspectClass.cast(new jetbrains.mps.samples.customizedDebugger.Bottomline.constraints.ConstraintsAspectDescriptor());
55     }
56     if (aspectClass == EditorAspectDescriptor.class) {
57       return aspectClass.cast(new EditorAspectDescriptorImpl());
58     }
59     if (aspectClass == MakeAspectDescriptor.class) {
60       return aspectClass.cast(new FacetAspectDescriptor());
61     }
62     if (aspectClass == StructureAspectDescriptor.class) {
63       return aspectClass.cast(new jetbrains.mps.samples.customizedDebugger.Bottomline.structure.StructureAspectDescriptor());
64     }
65     if (aspectClass == ConceptPresentationAspect.class) {
66       return aspectClass.cast(new ConceptPresentationAspectImpl());
67     }
68     if (aspectClass == TextGenAspectDescriptor.class) {
69       return aspectClass.cast(new jetbrains.mps.samples.customizedDebugger.Bottomline.textGen.TextGenAspectDescriptor());
70     }
71     if (aspectClass == IHelginsDescriptor.class) {
72       return aspectClass.cast(new TypesystemDescriptor());
73     }
74     return null;
75   }
76 }