Package org.eclipse.xtext.serializer

Examples of org.eclipse.xtext.serializer.ISerializer


  public String serializeFormatted(EObject obj) {
    return getSerializer().serialize(obj, SaveOptions.newBuilder().format().getOptions());
  }

  public String serializeFormatted(EObject obj, ITextRegion regionToFormat) {
    ISerializer s = getSerializer();
    Preconditions.checkState(s instanceof DomBasedSerializer);
    return ((DomBasedSerializer) s).serialize(obj, SaveOptions.newBuilder().format().getOptions(), regionToFormat);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.serializer.ISerializer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.