package edu.kit.iti.formal.pse.worthwhile;

/**
 * Initialization support for running Xtext languages without equinox extension
 * registry.
 */
public class WorthwhileStandaloneSetup extends
	WorthwhileStandaloneSetupGenerated {

    public static void doSetup() {
	new WorthwhileStandaloneSetup().createInjectorAndDoEMFRegistration();
    }
}

package edu.kit.iti.formal.pse.worthwhile;

import com.google.inject.Injector;

import edu.kit.iti.formal.pse.worthwhile.model.ast.impl.AstPackageImpl;

/**
 * Initialization support for running Xtext languages without equinox extension
 * registry.
 */
public class WorthwhileStandaloneSetup extends
WorthwhileStandaloneSetupGenerated {

	public static void doSetup() {
		new WorthwhileStandaloneSetup().createInjectorAndDoEMFRegistration();
	}

	@Override
	public Injector createInjectorAndDoEMFRegistration() {
		AstPackageImpl.init();
		return super.createInjectorAndDoEMFRegistration();
	}
}

Add workaround for model resolving bug in unit tests
[impl] Add workaround for model resolving bug in unit tests

Stolen from http://www.eclipse.org/forums/index.php/m/735764/
