blob: 3633fcf9dc060cfa35b5b77da9358c111284f92e [file] [log] [blame]
/**
* Copyright (c) 2011, 2015 - Lunifera GmbH (Gross Enzersdorf, Austria), Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
* 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:
* Florian Pirchner - Initial implementation
*/
package org.eclipse.osbp.dsl.datatype.xtext;
import org.eclipse.xtext.formatting.IFormatter;
import org.eclipse.xtext.generator.IOutputConfigurationProvider;
import org.eclipse.xtext.linking.ILinkingService;
import org.eclipse.osbp.dsl.datatype.xtext.formatter.DatatypeGrammarFormatter;
import org.eclipse.osbp.dsl.datatype.xtext.generator.Generator;
import org.eclipse.osbp.dsl.datatype.xtext.generator.OutputConfigurationProvider;
import org.eclipse.osbp.dsl.datatype.xtext.valueconverter.DatatypesQualifiedNameProvider;
import org.eclipse.osbp.dsl.xtext.lazyresolver.SemanticLoadingResource;
import org.eclipse.osbp.dsl.xtext.lazyresolver.linker.FastLinkingService;
/**
* Use this class to register components to be used at runtime / without the
* Equinox extension registry.
*/
public class DatatypeGrammarRuntimeModule extends
org.eclipse.osbp.dsl.datatype.xtext.AbstractDatatypeGrammarRuntimeModule {
public Class<? extends org.eclipse.xtext.naming.IQualifiedNameProvider> bindIQualifiedNameProvider() {
return DatatypesQualifiedNameProvider.class;
}
public Class<? extends org.eclipse.xtext.resource.XtextResource> bindXtextResource() {
return SemanticLoadingResource.class;
}
public Class<? extends ILinkingService> bindILinkingService() {
return FastLinkingService.class;
}
public Class<? extends org.eclipse.xtext.generator.IGenerator> bindIGenerator() {
return Generator.class;
}
public Class<? extends IOutputConfigurationProvider> bindIOutputConfigurationProvider() {
return OutputConfigurationProvider.class;
}
public Class<? extends IFormatter> bindIFormatter() {
return DatatypeGrammarFormatter.class;
}
}