gpt4 book ai didi

org.eclipse.xtext.xbase.XbaseStandaloneSetup.doSetup()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 09:50:40 27 4
gpt4 key购买 nike

本文整理了Java中org.eclipse.xtext.xbase.XbaseStandaloneSetup.doSetup()方法的一些代码示例,展示了XbaseStandaloneSetup.doSetup()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XbaseStandaloneSetup.doSetup()方法的具体详情如下:
包路径:org.eclipse.xtext.xbase.XbaseStandaloneSetup
类名称:XbaseStandaloneSetup
方法名:doSetup

XbaseStandaloneSetup.doSetup介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.viatra/org.eclipse.viatra.query.patternlanguage.emf

@Override
public Injector createInjectorAndDoEMFRegistration() {
  XbaseStandaloneSetup.doSetup();
  Injector injector = createInjector();
  register(injector);
  return injector;
}

代码示例来源:origin: org.testeditor/org.testeditor.aml.dsl

@Override
public Injector createInjectorAndDoEMFRegistration() {
  XbaseStandaloneSetup.doSetup();
  Injector injector = createInjector();
  register(injector);
  return injector;
}

代码示例来源:origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage

@Override
public Injector createInjectorAndDoEMFRegistration() {
  org.eclipse.xtext.xbase.XbaseStandaloneSetup.doSetup();
  Injector injector = createInjector();
  register(injector);
  return injector;
}

代码示例来源:origin: openhab/openhab-core

@Override
public Injector createInjectorAndDoEMFRegistration() {
  XbaseStandaloneSetup.doSetup();
  Injector injector = createInjector();
  register(injector);
  return injector;
}

代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.xbase

@Override
public Injector createInjectorAndDoEMFRegistration() {
  XbaseStandaloneSetup.doSetup();
  Injector injector = createInjector();
  register(injector);
  return injector;
}

代码示例来源:origin: org.testeditor/org.testeditor.tcl.dsl

@Override
public Injector createInjectorAndDoEMFRegistration() {
  XbaseStandaloneSetup.doSetup();
  Injector injector = createInjector();
  register(injector);
  return injector;
}

代码示例来源:origin: org.eclipse.viatra/org.eclipse.viatra.query.patternlanguage.emf

/**
 * Initializes an injector recommended for standalone parsing. 
 * </p>
 * 
 * <strong>Warning</strong>: In each Java application, at most one of the following methods should be called to
 * avoid corrupting the EMF registries:
 * 
 * <ul>
 * <li>{@link #createInjector()},</li>
 * <li>{@link #createInjectorAndDoEMFRegistration()},</li>
 * <li>{@link #createStandaloneInjector()},</li>
 * <li>{@link #createStandaloneInjectorWithSeparateModules()}</li>
 * <ul>
 * 
 * @since 2.0
 */
public Injector createStandaloneInjector() {
  XbaseStandaloneSetup.doSetup();
  Injector injector = Guice.createInjector(new StandaloneParserModule());
  register(injector);
  return injector;
}

代码示例来源:origin: org.eclipse.viatra/org.eclipse.viatra.query.patternlanguage.emf

/**
 * Initializes an injector recommended for standalone parsing using the {@link StandaloneParserWithSeparateModules} module.
 * </p>
 * 
 * <strong>Note</strong>: Instead of this rely on {@link #createStandaloneInjector()} instead, unless recreating the
 * pattern parser is really expensive.
 * </p>
 * 
 * <strong>Warning</strong>: In each Java application, at most one of the following methods should be called to
 * avoid corrupting the EMF registries:
 * 
 * <ul>
 * <li>{@link #createInjector()},</li>
 * <li>{@link #createInjectorAndDoEMFRegistration()},</li>
 * <li>{@link #createStandaloneInjector()},</li>
 * <li>{@link #createStandaloneInjectorWithSeparateModules()}</li>
 * <ul>
 * 
 * @since 2.0
 */
public Injector createStandaloneInjectorWithSeparateModules() {
  XbaseStandaloneSetup.doSetup();
  Injector injector = Guice.createInjector(new StandaloneParserWithSeparateModules());
  register(injector);
  return injector;
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com