Package org.eclipse.xtext.xdoc

Source Code of org.eclipse.xtext.xdoc.XdocStandaloneSetup

package org.eclipse.xtext.xdoc;

import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EPackage.Registry;
import org.eclipse.xtext.xdoc.xdoc.XdocPackage;

import com.google.inject.Injector;

/**
* Initialization support for running Xtext languages
* without equinox extension registry
*/
public class XdocStandaloneSetup extends XdocStandaloneSetupGenerated{

  public void doSetup() {
    new XdocStandaloneSetup().createInjectorAndDoEMFRegistration();
  }

  @Override
  public void register(Injector injector) {
    Registry registry = injector.getInstance(EPackage.Registry.class);
    registry.put(XdocPackage.eINSTANCE.getNsURI(), XdocPackage.eINSTANCE);
    super.register(injector);
  }
}
TOP

Related Classes of org.eclipse.xtext.xdoc.XdocStandaloneSetup

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.