org.eclipse.xtext.junit4.GlobalRegistries Java Examples
The following examples show how to use
org.eclipse.xtext.junit4.GlobalRegistries.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: WrappingInjectorProvider.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
public WrappingInjectorProvider(IInjectorProvider delegate) { this.delegate = delegate; stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState(); this.injector = createInjector(); registerFactory(injector); stateAfterInjectorCreation = GlobalRegistries.makeCopyOfGlobalState(); stateBeforeInjectorCreation.restoreGlobalState(); }
Example #2
Source File: XtextInjectorProvider.java From xtext-eclipse with Eclipse Public License 2.0 | 5 votes |
@Override public Injector getInjector() { if (injector == null) { stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState(); this.injector = new XtextStandaloneSetup().createInjectorAndDoEMFRegistration(); stateAfterInjectorCreation = GlobalRegistries.makeCopyOfGlobalState(); } return injector; }
Example #3
Source File: TaxonomyInjectorProvider.java From slr-toolkit with Eclipse Public License 1.0 | 5 votes |
@Override public Injector getInjector() { if (injector == null) { stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState(); this.injector = internalCreateInjector(); stateAfterInjectorCreation = GlobalRegistries.makeCopyOfGlobalState(); } return injector; }
Example #4
Source File: YangInjectorProvider.java From yang-design-studio with Eclipse Public License 1.0 | 5 votes |
public Injector getInjector() { if (injector == null) { stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState(); this.injector = internalCreateInjector(); stateAfterInjectorCreation = GlobalRegistries.makeCopyOfGlobalState(); } return injector; }
Example #5
Source File: WrappingInjectorProvider.java From xtext-eclipse with Eclipse Public License 2.0 | 4 votes |
@Override public void setupRegistry() { stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState(); stateAfterInjectorCreation.restoreGlobalState(); }