org.openxma.dsl.dom.DomDslRuntimeModule Maven / Gradle / Ivy
/*
* generated by Xtext
*/
package org.openxma.dsl.dom;
import org.eclipse.xtext.formatting.IIndentationInformation;
import org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.ICrossReferenceSerializer;
import org.eclipse.xtext.parsetree.reconstr.ITokenSerializer.IValueSerializer;
import org.eclipse.xtext.resource.IDefaultResourceDescriptionStrategy;
import org.openxma.dsl.common.formatter.DefaultIndentationInformation;
import org.openxma.dsl.core.converter.CoreDslConverter;
import org.openxma.dsl.core.linking.DocumentationLinker;
import org.openxma.dsl.core.scoping.OpenXmaNamespaceLocalScopeProvider;
import org.openxma.dsl.dom.naming.DomDslQualifiedNameProvider;
import org.openxma.dsl.dom.parsetree.reconstr.DomDslCrossReferenceSerializer;
import org.openxma.dsl.dom.parsetree.reconstr.DomDslParsetreeConstructorPatched;
import org.openxma.dsl.dom.parsetree.reconstr.DomDslUnassignedTextSerializer;
import org.openxma.dsl.dom.resource.DomDslResourceDescriptionStrategy;
/**
* Use this class to register components to be used within the IDE.
*/
public class DomDslRuntimeModule extends org.openxma.dsl.dom.AbstractDomDslRuntimeModule {
public void configureIScopeProviderDelegate(com.google.inject.Binder binder) {
binder.bind(org.eclipse.xtext.scoping.IScopeProvider.class)
.annotatedWith(
com.google.inject.name.Names
.named("org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.delegate"))
.to(OpenXmaNamespaceLocalScopeProvider.class);
}
public Class extends org.eclipse.xtext.naming.IQualifiedNameProvider> bindIQualifiedNameProvider() {
return DomDslQualifiedNameProvider.class;
}
public Class extends org.eclipse.xtext.conversion.IValueConverterService> bindIValueConverterService() {
return CoreDslConverter.class;
}
public Class extends IIndentationInformation> bindIndentationInformation() {
return DefaultIndentationInformation.class;
}
public Class extends ICrossReferenceSerializer> bindICrossReferenceSerializer() {
return DomDslCrossReferenceSerializer.class;
}
public Class extends org.eclipse.xtext.parsetree.reconstr.IParseTreeConstructor> bindIParseTreeConstructor() {
return DomDslParsetreeConstructorPatched.class;
}
public Class extends IValueSerializer> bindIValueSerializer() {
return DomDslUnassignedTextSerializer.class;
}
public Class extends IDefaultResourceDescriptionStrategy> bindIDefaultResourceDescriptionStrategy() {
return DomDslResourceDescriptionStrategy.class;
}
public Class extends org.eclipse.xtext.linking.ILinker> bindILinker() {
return DocumentationLinker.class;
}
}