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; }
/***/ public TextRegionAccessFactory(@ThisResource XtextResource resource) { TextRegionAccessBuilder builder = resource.getResourceServiceProvider().get(TextRegionAccessBuilder.class); regionAccess = builder.forNodeModel(resource).create(); }
public Class<? extends TextRegionAccessBuilder> bindTextRegionAccessBuilder() { return CDOTextRegionAccessBuilder.class; }