• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java EditorAspectDescriptor类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor的典型用法代码示例。如果您正苦于以下问题:Java EditorAspectDescriptor类的具体用法?Java EditorAspectDescriptor怎么用?Java EditorAspectDescriptor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



EditorAspectDescriptor类属于jetbrains.mps.openapi.editor.descriptor包,在下文中一共展示了EditorAspectDescriptor类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createAspect

import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
  if (aspectClass == BehaviorAspectDescriptor.class) {
    return aspectClass.cast(new SubjectiefRecht.behavior.BehaviorAspectDescriptor());
  }
  if (aspectClass == ConstraintsAspectDescriptor.class) {
    return aspectClass.cast(new SubjectiefRecht.constraints.ConstraintsAspectDescriptor());
  }
  if (aspectClass == EditorAspectDescriptor.class) {
    return aspectClass.cast(new EditorAspectDescriptorImpl());
  }
  if (aspectClass == StructureAspectDescriptor.class) {
    return aspectClass.cast(new SubjectiefRecht.structure.StructureAspectDescriptor());
  }
  if (aspectClass == ConceptPresentationAspect.class) {
    return aspectClass.cast(new ConceptPresentationAspectImpl());
  }
  if (aspectClass == TextGenAspectDescriptor.class) {
    return aspectClass.cast(new SubjectiefRecht.textGen.TextGenAspectDescriptor());
  }
  if (aspectClass == IHelginsDescriptor.class) {
    return aspectClass.cast(new TypesystemDescriptor());
  }
  return null;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:26,代码来源:Language.java


示例2: createAspect

import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
  if (aspectClass == BehaviorAspectDescriptor.class) {
    return aspectClass.cast(new Algemeen.behavior.BehaviorAspectDescriptor());
  }
  if (aspectClass == ConstraintsAspectDescriptor.class) {
    return aspectClass.cast(new Algemeen.constraints.ConstraintsAspectDescriptor());
  }
  if (aspectClass == EditorAspectDescriptor.class) {
    return aspectClass.cast(new EditorAspectDescriptorImpl());
  }
  if (aspectClass == StructureAspectDescriptor.class) {
    return aspectClass.cast(new Algemeen.structure.StructureAspectDescriptor());
  }
  if (aspectClass == ConceptPresentationAspect.class) {
    return aspectClass.cast(new ConceptPresentationAspectImpl());
  }
  if (aspectClass == IHelginsDescriptor.class) {
    return aspectClass.cast(new TypesystemDescriptor());
  }
  return null;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:23,代码来源:Language.java


示例3: createAspect

import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
  if (aspectClass == BehaviorAspectDescriptor.class) {
    return aspectClass.cast(new Datum.behavior.BehaviorAspectDescriptor());
  }
  if (aspectClass == ConstraintsAspectDescriptor.class) {
    return aspectClass.cast(new Datum.constraints.ConstraintsAspectDescriptor());
  }
  if (aspectClass == EditorAspectDescriptor.class) {
    return aspectClass.cast(new EditorAspectDescriptorImpl());
  }
  if (aspectClass == StructureAspectDescriptor.class) {
    return aspectClass.cast(new Datum.structure.StructureAspectDescriptor());
  }
  if (aspectClass == ConceptPresentationAspect.class) {
    return aspectClass.cast(new ConceptPresentationAspectImpl());
  }
  if (aspectClass == TextGenAspectDescriptor.class) {
    return aspectClass.cast(new Datum.textGen.TextGenAspectDescriptor());
  }
  if (aspectClass == IHelginsDescriptor.class) {
    return aspectClass.cast(new TypesystemDescriptor());
  }
  return null;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:26,代码来源:Language.java


示例4: createAspect

import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
  if (aspectClass == BehaviorAspectDescriptor.class) {
    return aspectClass.cast(new Integriteit.behavior.BehaviorAspectDescriptor());
  }
  if (aspectClass == ConstraintsAspectDescriptor.class) {
    return aspectClass.cast(new Integriteit.constraints.ConstraintsAspectDescriptor());
  }
  if (aspectClass == EditorAspectDescriptor.class) {
    return aspectClass.cast(new EditorAspectDescriptorImpl());
  }
  if (aspectClass == StructureAspectDescriptor.class) {
    return aspectClass.cast(new Integriteit.structure.StructureAspectDescriptor());
  }
  if (aspectClass == ConceptPresentationAspect.class) {
    return aspectClass.cast(new ConceptPresentationAspectImpl());
  }
  if (aspectClass == IHelginsDescriptor.class) {
    return aspectClass.cast(new TypesystemDescriptor());
  }
  return null;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:23,代码来源:Language.java


示例5: createAspect

import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
  if (aspectClass == BehaviorAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToXML.behavior.BehaviorAspectDescriptor());
  }
  if (aspectClass == ConstraintsAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToXML.constraints.ConstraintsAspectDescriptor());
  }
  if (aspectClass == EditorAspectDescriptor.class) {
    return aspectClass.cast(new EditorAspectDescriptorImpl());
  }
  if (aspectClass == StructureAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToXML.structure.StructureAspectDescriptor());
  }
  if (aspectClass == ConceptPresentationAspect.class) {
    return aspectClass.cast(new ConceptPresentationAspectImpl());
  }
  if (aspectClass == IHelginsDescriptor.class) {
    return aspectClass.cast(new TypesystemDescriptor());
  }
  return null;
}
 
开发者ID:vaclav,项目名称:voicemenu,代码行数:23,代码来源:Language.java


示例6: createAspect

import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
  if (aspectClass == BehaviorAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToHTML.behavior.BehaviorAspectDescriptor());
  }
  if (aspectClass == ConstraintsAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToHTML.constraints.ConstraintsAspectDescriptor());
  }
  if (aspectClass == EditorAspectDescriptor.class) {
    return aspectClass.cast(new EditorAspectDescriptorImpl());
  }
  if (aspectClass == StructureAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToHTML.structure.StructureAspectDescriptor());
  }
  if (aspectClass == ConceptPresentationAspect.class) {
    return aspectClass.cast(new ConceptPresentationAspectImpl());
  }
  if (aspectClass == IHelginsDescriptor.class) {
    return aspectClass.cast(new TypesystemDescriptor());
  }
  return null;
}
 
开发者ID:vaclav,项目名称:voicemenu,代码行数:23,代码来源:Language.java


示例7: createAspect

import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
  if (aspectClass == BehaviorAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToHTML.behavior.BehaviorAspectDescriptor());
  }
  if (aspectClass == ConstraintsAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToHTML.constraints.ConstraintsAspectDescriptor());
  }
  if (aspectClass == EditorAspectDescriptor.class) {
    return aspectClass.cast(new EditorAspectDescriptorImpl());
  }
  if (aspectClass == MakeAspectDescriptor.class) {
    return aspectClass.cast(new FacetAspectDescriptor());
  }
  if (aspectClass == StructureAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToHTML.structure.StructureAspectDescriptor());
  }
  if (aspectClass == ConceptPresentationAspect.class) {
    return aspectClass.cast(new ConceptPresentationAspectImpl());
  }
  if (aspectClass == IHelginsDescriptor.class) {
    return aspectClass.cast(new TypesystemDescriptor());
  }
  return null;
}
 
开发者ID:vaclav,项目名称:voicemenu,代码行数:26,代码来源:Language.java


示例8: createAspect

import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
  if (aspectClass == BehaviorAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.VoiceMenu.behavior.BehaviorAspectDescriptor());
  }
  if (aspectClass == ConstraintsAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.VoiceMenu.constraints.ConstraintsAspectDescriptor());
  }
  if (aspectClass == EditorAspectDescriptor.class) {
    return aspectClass.cast(new EditorAspectDescriptorImpl());
  }
  if (aspectClass == IntentionAspectDescriptor.class) {
    return aspectClass.cast(new IntentionsDescriptor());
  }
  if (aspectClass == StructureAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.VoiceMenu.structure.StructureAspectDescriptor());
  }
  if (aspectClass == ConceptPresentationAspect.class) {
    return aspectClass.cast(new ConceptPresentationAspectImpl());
  }
  if (aspectClass == IHelginsDescriptor.class) {
    return aspectClass.cast(new TypesystemDescriptor());
  }
  return null;
}
 
开发者ID:vaclav,项目名称:voicemenu,代码行数:26,代码来源:Language.java


示例9: createAspect

import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
  if (aspectClass == BehaviorAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToJava.behavior.BehaviorAspectDescriptor());
  }
  if (aspectClass == ConstraintsAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToJava.constraints.ConstraintsAspectDescriptor());
  }
  if (aspectClass == EditorAspectDescriptor.class) {
    return aspectClass.cast(new EditorAspectDescriptorImpl());
  }
  if (aspectClass == StructureAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToJava.structure.StructureAspectDescriptor());
  }
  if (aspectClass == ConceptPresentationAspect.class) {
    return aspectClass.cast(new ConceptPresentationAspectImpl());
  }
  if (aspectClass == IHelginsDescriptor.class) {
    return aspectClass.cast(new TypesystemDescriptor());
  }
  return null;
}
 
开发者ID:vaclav,项目名称:voicemenu,代码行数:23,代码来源:Language.java


示例10: createAspect

import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
  if (aspectClass == BehaviorAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToAsterisk.behavior.BehaviorAspectDescriptor());
  }
  if (aspectClass == ConstraintsAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToAsterisk.constraints.ConstraintsAspectDescriptor());
  }
  if (aspectClass == EditorAspectDescriptor.class) {
    return aspectClass.cast(new EditorAspectDescriptorImpl());
  }
  if (aspectClass == StructureAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuToAsterisk.structure.StructureAspectDescriptor());
  }
  if (aspectClass == ConceptPresentationAspect.class) {
    return aspectClass.cast(new ConceptPresentationAspectImpl());
  }
  if (aspectClass == IHelginsDescriptor.class) {
    return aspectClass.cast(new TypesystemDescriptor());
  }
  return null;
}
 
开发者ID:vaclav,项目名称:voicemenu,代码行数:23,代码来源:Language.java


示例11: createAspect

import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
  if (aspectClass == BehaviorAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.AsteriskLang.behavior.BehaviorAspectDescriptor());
  }
  if (aspectClass == ConstraintsAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.AsteriskLang.constraints.ConstraintsAspectDescriptor());
  }
  if (aspectClass == EditorAspectDescriptor.class) {
    return aspectClass.cast(new EditorAspectDescriptorImpl());
  }
  if (aspectClass == StructureAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.AsteriskLang.structure.StructureAspectDescriptor());
  }
  if (aspectClass == ConceptPresentationAspect.class) {
    return aspectClass.cast(new ConceptPresentationAspectImpl());
  }
  if (aspectClass == TextGenAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.AsteriskLang.textGen.TextGenAspectDescriptor());
  }
  if (aspectClass == IHelginsDescriptor.class) {
    return aspectClass.cast(new TypesystemDescriptor());
  }
  return null;
}
 
开发者ID:vaclav,项目名称:voicemenu,代码行数:26,代码来源:Language.java


示例12: createAspect

import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
  if (aspectClass == BehaviorAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuTabularEditor.behavior.BehaviorAspectDescriptor());
  }
  if (aspectClass == ConstraintsAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuTabularEditor.constraints.ConstraintsAspectDescriptor());
  }
  if (aspectClass == EditorAspectDescriptor.class) {
    return aspectClass.cast(new EditorAspectDescriptorImpl());
  }
  if (aspectClass == StructureAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.VoiceMenuTabularEditor.structure.StructureAspectDescriptor());
  }
  if (aspectClass == ConceptPresentationAspect.class) {
    return aspectClass.cast(new ConceptPresentationAspectImpl());
  }
  if (aspectClass == IHelginsDescriptor.class) {
    return aspectClass.cast(new TypesystemDescriptor());
  }
  return null;
}
 
开发者ID:vaclav,项目名称:voicemenu,代码行数:23,代码来源:Language.java


示例13: createAspect

import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
  if (aspectClass == BehaviorAspectDescriptor.class) {
    return aspectClass.cast(new CalculatorJS.behavior.BehaviorAspectDescriptor());
  }
  if (aspectClass == ConstraintsAspectDescriptor.class) {
    return aspectClass.cast(new CalculatorJS.constraints.ConstraintsAspectDescriptor());
  }
  if (aspectClass == EditorAspectDescriptor.class) {
    return aspectClass.cast(new EditorAspectDescriptorImpl());
  }
  if (aspectClass == MakeAspectDescriptor.class) {
    return aspectClass.cast(new FacetAspectDescriptor());
  }
  if (aspectClass == StructureAspectDescriptor.class) {
    return aspectClass.cast(new CalculatorJS.structure.StructureAspectDescriptor());
  }
  if (aspectClass == ConceptPresentationAspect.class) {
    return aspectClass.cast(new ConceptPresentationAspectImpl());
  }
  if (aspectClass == IHelginsDescriptor.class) {
    return aspectClass.cast(new TypesystemDescriptor());
  }
  return null;
}
 
开发者ID:vaclav,项目名称:CalculatorJS,代码行数:26,代码来源:Language.java


示例14: createAspect

import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
  if (aspectClass == BehaviorAspectDescriptor.class) {
    return aspectClass.cast(new org.campagnelab.refexample.behavior.BehaviorAspectDescriptor());
  }
  if (aspectClass == ConstraintsAspectDescriptor.class) {
    return aspectClass.cast(new org.campagnelab.refexample.constraints.ConstraintsAspectDescriptor());
  }
  if (aspectClass == EditorAspectDescriptor.class) {
    return aspectClass.cast(new EditorAspectDescriptorImpl());
  }
  if (aspectClass == StructureAspectDescriptor.class) {
    return aspectClass.cast(new org.campagnelab.refexample.structure.StructureAspectDescriptor());
  }
  if (aspectClass == ConceptPresentationAspect.class) {
    return aspectClass.cast(new ConceptPresentationAspectImpl());
  }
  if (aspectClass == IHelginsDescriptor.class) {
    return aspectClass.cast(new TypesystemDescriptor());
  }
  return null;
}
 
开发者ID:CampagneLaboratory,项目名称:Editor2PDF,代码行数:23,代码来源:Language.java


示例15: createAspect

import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
  if (aspectClass == BehaviorAspectDescriptor.class) {
    return aspectClass.cast(new org.campagnelab.mps.editor2pdf.behavior.BehaviorAspectDescriptor());
  }
  if (aspectClass == ConstraintsAspectDescriptor.class) {
    return aspectClass.cast(new org.campagnelab.mps.editor2pdf.constraints.ConstraintsAspectDescriptor());
  }
  if (aspectClass == EditorAspectDescriptor.class) {
    return aspectClass.cast(new EditorAspectDescriptorImpl());
  }
  if (aspectClass == IntentionAspectDescriptor.class) {
    return aspectClass.cast(new IntentionsDescriptor());
  }
  if (aspectClass == StructureAspectDescriptor.class) {
    return aspectClass.cast(new org.campagnelab.mps.editor2pdf.structure.StructureAspectDescriptor());
  }
  if (aspectClass == ConceptPresentationAspect.class) {
    return aspectClass.cast(new ConceptPresentationAspectImpl());
  }
  if (aspectClass == IHelginsDescriptor.class) {
    return aspectClass.cast(new TypesystemDescriptor());
  }
  return null;
}
 
开发者ID:CampagneLaboratory,项目名称:Editor2PDF,代码行数:26,代码来源:Language.java


示例16: createAspect

import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
  if (aspectClass == ActionAspectDescriptor.class) {
    return aspectClass.cast(new ActionAspectDescriptorImpl());
  }
  if (aspectClass == BehaviorAspectDescriptor.class) {
    return aspectClass.cast(new ObjectiefRecht.behavior.BehaviorAspectDescriptor());
  }
  if (aspectClass == ConstraintsAspectDescriptor.class) {
    return aspectClass.cast(new ObjectiefRecht.constraints.ConstraintsAspectDescriptor());
  }
  if (aspectClass == EditorAspectDescriptor.class) {
    return aspectClass.cast(new EditorAspectDescriptorImpl());
  }
  if (aspectClass == IntentionAspectDescriptor.class) {
    return aspectClass.cast(new IntentionsDescriptor());
  }
  if (aspectClass == MigrationAspectDescriptor.class) {
    return aspectClass.cast(new MigrationDescriptor());
  }
  if (aspectClass == StructureAspectDescriptor.class) {
    return aspectClass.cast(new ObjectiefRecht.structure.StructureAspectDescriptor());
  }
  if (aspectClass == ConceptPresentationAspect.class) {
    return aspectClass.cast(new ConceptPresentationAspectImpl());
  }
  if (aspectClass == TextGenAspectDescriptor.class) {
    return aspectClass.cast(new ObjectiefRecht.textGen.TextGenAspectDescriptor());
  }
  if (aspectClass == IHelginsDescriptor.class) {
    return aspectClass.cast(new TypesystemDescriptor());
  }
  return null;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:35,代码来源:Language.java


示例17: createAspect

import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
  if (aspectClass == BehaviorAspectDescriptor.class) {
    return aspectClass.cast(new Interactie.behavior.BehaviorAspectDescriptor());
  }
  if (aspectClass == ConstraintsAspectDescriptor.class) {
    return aspectClass.cast(new Interactie.constraints.ConstraintsAspectDescriptor());
  }
  if (aspectClass == EditorAspectDescriptor.class) {
    return aspectClass.cast(new EditorAspectDescriptorImpl());
  }
  if (aspectClass == MigrationAspectDescriptor.class) {
    return aspectClass.cast(new MigrationDescriptor());
  }
  if (aspectClass == StructureAspectDescriptor.class) {
    return aspectClass.cast(new Interactie.structure.StructureAspectDescriptor());
  }
  if (aspectClass == ConceptPresentationAspect.class) {
    return aspectClass.cast(new ConceptPresentationAspectImpl());
  }
  if (aspectClass == TextGenAspectDescriptor.class) {
    return aspectClass.cast(new Interactie.textGen.TextGenAspectDescriptor());
  }
  if (aspectClass == IHelginsDescriptor.class) {
    return aspectClass.cast(new TypesystemDescriptor());
  }
  return null;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:29,代码来源:Language.java


示例18: createAspect

import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
  if (aspectClass == BehaviorAspectDescriptor.class) {
    return aspectClass.cast(new Gegevens.behavior.BehaviorAspectDescriptor());
  }
  if (aspectClass == ConstraintsAspectDescriptor.class) {
    return aspectClass.cast(new Gegevens.constraints.ConstraintsAspectDescriptor());
  }
  if (aspectClass == EditorAspectDescriptor.class) {
    return aspectClass.cast(new EditorAspectDescriptorImpl());
  }
  if (aspectClass == IntentionAspectDescriptor.class) {
    return aspectClass.cast(new IntentionsDescriptor());
  }
  if (aspectClass == StructureAspectDescriptor.class) {
    return aspectClass.cast(new Gegevens.structure.StructureAspectDescriptor());
  }
  if (aspectClass == ConceptPresentationAspect.class) {
    return aspectClass.cast(new ConceptPresentationAspectImpl());
  }
  if (aspectClass == TextGenAspectDescriptor.class) {
    return aspectClass.cast(new Gegevens.textGen.TextGenAspectDescriptor());
  }
  if (aspectClass == IHelginsDescriptor.class) {
    return aspectClass.cast(new TypesystemDescriptor());
  }
  return null;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:29,代码来源:Language.java


示例19: createAspect

import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
  if (aspectClass == BehaviorAspectDescriptor.class) {
    return aspectClass.cast(new Simulatie.behavior.BehaviorAspectDescriptor());
  }
  if (aspectClass == ConstraintsAspectDescriptor.class) {
    return aspectClass.cast(new Simulatie.constraints.ConstraintsAspectDescriptor());
  }
  if (aspectClass == EditorAspectDescriptor.class) {
    return aspectClass.cast(new EditorAspectDescriptorImpl());
  }
  if (aspectClass == IntentionAspectDescriptor.class) {
    return aspectClass.cast(new IntentionsDescriptor());
  }
  if (aspectClass == StructureAspectDescriptor.class) {
    return aspectClass.cast(new Simulatie.structure.StructureAspectDescriptor());
  }
  if (aspectClass == ConceptPresentationAspect.class) {
    return aspectClass.cast(new ConceptPresentationAspectImpl());
  }
  if (aspectClass == TextGenAspectDescriptor.class) {
    return aspectClass.cast(new Simulatie.textGen.TextGenAspectDescriptor());
  }
  if (aspectClass == IHelginsDescriptor.class) {
    return aspectClass.cast(new TypesystemDescriptor());
  }
  return null;
}
 
开发者ID:diederikd,项目名称:DeBrug,代码行数:29,代码来源:Language.java


示例20: createAspect

import jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor; //导入依赖的package包/类
@Override
protected <T extends ILanguageAspect> T createAspect(Class<T> aspectClass) {
  if (aspectClass == BehaviorAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.Text.behavior.BehaviorAspectDescriptor());
  }
  if (aspectClass == ConstraintsAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.Text.constraints.ConstraintsAspectDescriptor());
  }
  if (aspectClass == EditorAspectDescriptor.class) {
    return aspectClass.cast(new EditorAspectDescriptorImpl());
  }
  if (aspectClass == IntentionAspectDescriptor.class) {
    return aspectClass.cast(new IntentionsDescriptor());
  }
  if (aspectClass == StructureAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.Text.structure.StructureAspectDescriptor());
  }
  if (aspectClass == ConceptPresentationAspect.class) {
    return aspectClass.cast(new ConceptPresentationAspectImpl());
  }
  if (aspectClass == TextGenAspectDescriptor.class) {
    return aspectClass.cast(new jetbrains.mps.samples.Text.textGen.TextGenAspectDescriptor());
  }
  if (aspectClass == IHelginsDescriptor.class) {
    return aspectClass.cast(new TypesystemDescriptor());
  }
  return null;
}
 
开发者ID:vaclav,项目名称:voicemenu,代码行数:29,代码来源:Language.java



注:本文中的jetbrains.mps.openapi.editor.descriptor.EditorAspectDescriptor类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java FtpRequest类代码示例发布时间:2022-05-23
下一篇:
Java RSAKeyGenerationParameters类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap