Skip to content
Snippets Groups Projects
Commit 3913f824 authored by tfli's avatar tfli
Browse files

Reverted gitignore

parent 4550ff78
No related branches found
No related tags found
No related merge requests found
/bin/
/target/
.classpath
/.settings/
/src-gen/
/xtend-gen/
\ No newline at end of file
/.settings/
\ No newline at end of file
/*
* generated by Xtext 2.9.1
*/
package de.fhmuenster.masterthesis.tests;
import com.google.inject.Injector;
import de.fhmuenster.masterthesis.TestgeneratorDSLStandaloneSetup;
import org.eclipse.xtext.junit4.GlobalRegistries;
import org.eclipse.xtext.junit4.GlobalRegistries.GlobalStateMemento;
import org.eclipse.xtext.junit4.IInjectorProvider;
import org.eclipse.xtext.junit4.IRegistryConfigurator;
public class TestgeneratorDSLInjectorProvider implements IInjectorProvider, IRegistryConfigurator {
protected GlobalStateMemento stateBeforeInjectorCreation;
protected GlobalStateMemento stateAfterInjectorCreation;
protected Injector injector;
static {
GlobalRegistries.initializeDefaults();
}
@Override
public Injector getInjector() {
if (injector == null) {
stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState();
this.injector = internalCreateInjector();
stateAfterInjectorCreation = GlobalRegistries.makeCopyOfGlobalState();
}
return injector;
}
protected Injector internalCreateInjector() {
return new TestgeneratorDSLStandaloneSetup().createInjectorAndDoEMFRegistration();
}
@Override
public void restoreRegistry() {
stateBeforeInjectorCreation.restoreGlobalState();
}
@Override
public void setupRegistry() {
getInjector();
stateAfterInjectorCreation.restoreGlobalState();
}
}
/.TestgeneratorDSLParsingTest.java._trace
/.TestgeneratorDSLParsingTest.xtendbin
/TestgeneratorDSLParsingTest.java
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment