Class AbstractStandaloneSetup

  • All Implemented Interfaces:
    org.eclipse.xtext.ISetup

    public abstract class AbstractStandaloneSetup
    extends Object
    implements org.eclipse.xtext.ISetup
    • Field Detail

      • ePackage

        protected org.eclipse.emf.ecore.EPackage ePackage
    • Constructor Detail

      • AbstractStandaloneSetup

        public AbstractStandaloneSetup​(org.eclipse.emf.ecore.EPackage ePackage,
                                       String id)
    • Method Detail

      • createInjectorAndDoEMFRegistration

        public com.google.inject.Injector createInjectorAndDoEMFRegistration()
        Производит инициализацию всех зависимостей и регистрацию для раcширения getFileExtension() фабрики ресурса, определенной в модуле, получаемом из getRuntimeModule()
        Specified by:
        createInjectorAndDoEMFRegistration in interface org.eclipse.xtext.ISetup
      • getFileExtension

        public abstract String getFileExtension()
      • createInjector

        protected com.google.inject.Injector createInjector()
      • register

        protected void register​(com.google.inject.Injector injector)
      • getRuntimeModule

        protected abstract com.google.inject.Module getRuntimeModule()
        Данный метод должен возврящать экземпляр модуля, в котором определена инъекция всех необходимых инъекций
        Returns:
        экземпляр модуля