/*******************************************************************************
 * Copyright (c) 2012 - 2015 Signal Iduna Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 * Signal Iduna Corporation - initial API and implementation
 * akquinet AG
 * itemis AG
 *******************************************************************************/
package org.testeditor.aml.dsl;

import org.eclipse.xtext.conversion.IValueConverterService;
import org.eclipse.xtext.generator.IGenerator;
import org.eclipse.xtext.naming.IQualifiedNameProvider;
import org.eclipse.xtext.xbase.scoping.batch.XbaseBatchScopeProvider;
import org.testeditor.aml.dsl.conversion.AmlValueConverterService;
import org.testeditor.aml.dsl.generator.XmlGenerator;
import org.testeditor.aml.dsl.naming.AmlQualifiedNameProvider;
import org.testeditor.aml.dsl.scoping.AmlScopeProvider;

/**
 * Use this class to register components to be used at runtime / without the Equinox extension registry.
 */
@SuppressWarnings("restriction") // XbaseBatchScopeProvider is restricted
public class AmlRuntimeModule extends org.testeditor.aml.dsl.AbstractAmlRuntimeModule {

	/**
	 * Right now we don't generate Java classes but the old
	 * XML files. This will be changed in the future.
	 */
	@Override
	public Class<? extends IGenerator> bindIGenerator() {
		return XmlGenerator.class;
	}
	
	@Override
	public Class<? extends IValueConverterService> bindIValueConverterService() {
		return AmlValueConverterService.class;
	}
	
	@Override
	public Class<? extends IQualifiedNameProvider> bindIQualifiedNameProvider() {
		return AmlQualifiedNameProvider.class;
	}
	
	public Class<? extends XbaseBatchScopeProvider> bindXbaseBatchScopeProvider() {
		return AmlScopeProvider.class;
	}
	
}

@@ -802,22 +802,16 @@
 ext.
-xbase.
 scoping.
 batc
@@ -810,24 +810,9 @@
 ing.
-batch.XbaseBatch
+I
 Scop
@@ -1180,82 +1180,8 @@
  */%0A
-@SuppressWarnings(%22restriction%22) // XbaseBatchScopeProvider is restricted%0A
 publ
@@ -1755,16 +1755,27 @@
 s;%0A%09%7D%0A%09%0A
+%09@Override%0A
 %09public 
@@ -1790,26 +1790,17 @@
 extends 
-XbaseBatch
+I
 ScopePro
@@ -1814,18 +1814,9 @@
 bind
-XbaseBatch
+I
 Scop

fix scoping issue