MPS-27804 - change incorrect dependencies to "Extends"
[mps/mps.git] / samples / customizedDebugger / languages / jetbrains.mps.samples.customizedDebugger.Highlevel / source_gen / jetbrains / mps / samples / customizedDebugger / Highlevel / Language.java
1 package jetbrains.mps.samples.customizedDebugger.Highlevel;
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.adapter.structure.MetaAdapterFactory;
10 import jetbrains.mps.smodel.runtime.ILanguageAspect;
11 import jetbrains.mps.smodel.runtime.BehaviorAspectDescriptor;
12 import jetbrains.mps.smodel.runtime.ConstraintsAspectDescriptor;
13 import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor;
14 import jetbrains.mps.samples.customizedDebugger.Highlevel.editor.EditorAspectDescriptorImpl;
15 import jetbrains.mps.smodel.runtime.StructureAspectDescriptor;
16 import jetbrains.mps.smodel.runtime.ConceptPresentationAspect;
17 import jetbrains.mps.samples.customizedDebugger.Highlevel.structure.ConceptPresentationAspectImpl;
18 import jetbrains.mps.lang.typesystem.runtime.IHelginsDescriptor;
19 import jetbrains.mps.samples.customizedDebugger.Highlevel.typesystem.TypesystemDescriptor;
20
21 public class Language extends LanguageRuntime {
22   private final SLanguageId myId;
23
24   public Language() {
25     myId = SLanguageId.deserialize("bdab7456-dc1d-4dc5-b5bf-ab059630252d");
26   }
27
28   @Override
29   public String getNamespace() {
30     return "jetbrains.mps.samples.customizedDebugger.Highlevel";
31   }
32
33   @Override
34   public int getVersion() {
35     return 0;
36   }
37
38   public SLanguageId getId() {
39     return myId;
40   }
41
42   @Override
43   protected void fillExtendedLanguages(Collection<SLanguage> extendedLanguages) {
44     extendedLanguages.add(MetaAdapterFactory.getLanguage(SLanguageId.deserialize("4caf0310-491e-41f5-8a9b-2006b3a94898"), "jetbrains.mps.execution.util"));
45   }
46
47   @Override
48   protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
49     if (aspectClass == BehaviorAspectDescriptor.class) {
50       return aspectClass.cast(new jetbrains.mps.samples.customizedDebugger.Highlevel.behavior.BehaviorAspectDescriptor());
51     }
52     if (aspectClass == ConstraintsAspectDescriptor.class) {
53       return aspectClass.cast(new jetbrains.mps.samples.customizedDebugger.Highlevel.constraints.ConstraintsAspectDescriptor());
54     }
55     if (aspectClass == EditorAspectDescriptor.class) {
56       return aspectClass.cast(new EditorAspectDescriptorImpl());
57     }
58     if (aspectClass == StructureAspectDescriptor.class) {
59       return aspectClass.cast(new jetbrains.mps.samples.customizedDebugger.Highlevel.structure.StructureAspectDescriptor());
60     }
61     if (aspectClass == ConceptPresentationAspect.class) {
62       return aspectClass.cast(new ConceptPresentationAspectImpl());
63     }
64     if (aspectClass == IHelginsDescriptor.class) {
65       return aspectClass.cast(new TypesystemDescriptor());
66     }
67     return null;
68   }
69 }