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);
}