All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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 bindIQualifiedNameProvider() {
        return DomDslQualifiedNameProvider.class;
    }

    public Class bindIValueConverterService() {
        return CoreDslConverter.class;
    }

    public Class bindIndentationInformation() {
        return DefaultIndentationInformation.class;
    }
        
    public Class bindICrossReferenceSerializer() {
        return DomDslCrossReferenceSerializer.class;
    }

    public Class bindIParseTreeConstructor() {
        return DomDslParsetreeConstructorPatched.class;
    }

    public Class bindIValueSerializer() {
        return DomDslUnassignedTextSerializer.class;
    }

    public Class bindIDefaultResourceDescriptionStrategy() {
        return DomDslResourceDescriptionStrategy.class;
    }

    public Class bindILinker() {
        return DocumentationLinker.class;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy