Commit 779afe08 authored by Daniel Honsel's avatar Daniel Honsel
Browse files

updated ignores again

parent 622cb789
Loading
Loading
Loading
Loading
+0 −45
Original line number Diff line number Diff line
/*
* generated by Xtext
*/
package de.ugoe.cs.swe;

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;

import com.google.inject.Injector;

public class TTCN3InjectorProvider implements IInjectorProvider, IRegistryConfigurator {
	
    protected GlobalStateMemento stateBeforeInjectorCreation;
	protected GlobalStateMemento stateAfterInjectorCreation;
	protected Injector injector;

	static {
		GlobalRegistries.initializeDefaults();
	}

	public Injector getInjector()
	{
		if (injector == null) {
			stateBeforeInjectorCreation = GlobalRegistries.makeCopyOfGlobalState();
			this.injector = internalCreateInjector();
			stateAfterInjectorCreation = GlobalRegistries.makeCopyOfGlobalState();
		}
		return injector;
	}
	
	protected Injector internalCreateInjector() {
	    return new TTCN3StandaloneSetup().createInjectorAndDoEMFRegistration();
	}

	public void restoreRegistry() {
		stateBeforeInjectorCreation.restoreGlobalState();
	}

	public void setupRegistry() {
		getInjector();
		stateAfterInjectorCreation.restoreGlobalState();
	}
}
+0 −16
Original line number Diff line number Diff line
/*
* generated by Xtext
*/
package de.ugoe.cs.swe;

import org.eclipse.xtext.junit4.IInjectorProvider;

import com.google.inject.Injector;

public class TTCN3UiInjectorProvider implements IInjectorProvider {
	
	public Injector getInjector() {
		return de.ugoe.cs.swe.ui.internal.TTCN3Activator.getInstance().getInjector("de.ugoe.cs.swe.TTCN3");
	}
	
}
+0 −16
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>

<plugin>

  <extension point="org.eclipse.emf.ecore.generated_package">
    <package 
       uri = "http://www.ugoe.de/cs/swe/TTCN3" 
       class = "de.ugoe.cs.swe.tTCN3.TTCN3Package"
       genModel = "model/generated/TTCN3.genmodel" /> 
	
  </extension>



</plugin>