Java 类org.eclipse.xtext.formatting2.regionaccess.TextRegionAccessBuilder 实例源码

项目:xtext-core    文件:Serializer.java   
public ITextRegionAccess serializeToRegions(EObject obj) {
    checkNotNull(obj, "obj must not be null.");
    ISerializationContext context = getIContext(obj);
    TextRegionAccessBuilder builder = textRegionBuilderProvider.get();
    ISerializationDiagnostic.Acceptor errors = ISerializationDiagnostic.EXCEPTION_THROWING_ACCEPTOR;
    serialize(context, obj, builder.forSequence(context, obj), errors);
    ITextRegionAccess regionAccess = builder.create();
    return regionAccess;
}
项目:n4js    文件:FormatterXpectMethod.java   
/***/
public TextRegionAccessFactory(@ThisResource XtextResource resource) {
    TextRegionAccessBuilder builder = resource.getResourceServiceProvider().get(TextRegionAccessBuilder.class);
    regionAccess = builder.forNodeModel(resource).create();
}
项目:CooperateModelingEnvironment    文件:AbstractComponentRuntimeModule.java   
public Class<? extends TextRegionAccessBuilder> bindTextRegionAccessBuilder() {
    return CDOTextRegionAccessBuilder.class;
}
项目:CooperateModelingEnvironment    文件:AbstractClsRuntimeModule.java   
public Class<? extends TextRegionAccessBuilder> bindTextRegionAccessBuilder() {
    return CDOTextRegionAccessBuilder.class;
}
项目:CooperateModelingEnvironment    文件:AbstractUsecaseRuntimeModule.java   
public Class<? extends TextRegionAccessBuilder> bindTextRegionAccessBuilder() {
    return CDOTextRegionAccessBuilder.class;
}