Package org.eclipse.xtext.resource

Examples of org.eclipse.xtext.resource.SaveOptions


      return exports.get(matching.get(0));
    return null;
  }

  public String serialize(EObject obj) {
    SaveOptions options = SaveOptions.newBuilder().getOptions();
    return getSerializer().serialize(obj, options);
  }
View Full Code Here


    return new AssertableResourceDiagnostics(r.getWarnings());
  }

  @Override
  public String serialize(EObject obj) {
    SaveOptions options = SaveOptions.newBuilder().getOptions();
    // System.err.println(options.toString());
    return getSerializer().serialize(obj, options);
  }
View Full Code Here

      final String expectedFormattedSample = _builder_1.toString();
      final Model model = this.parser.parse(sample);
      this.validationHelper.assertNoErrors(model);
      SaveOptions.Builder _newBuilder = SaveOptions.newBuilder();
      SaveOptions.Builder _format = _newBuilder.format();
      SaveOptions _options = _format.getOptions();
      final String resultFormattedCode = this._iSerializer.serialize(model, _options);
      Assert.assertEquals(expectedFormattedSample, resultFormattedCode);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
View Full Code Here

      final String expectedFormattedSample = _builder_1.toString();
      final Model model = this.parser.parse(sample);
      this.validationHelper.assertNoErrors(model);
      SaveOptions.Builder _newBuilder = SaveOptions.newBuilder();
      SaveOptions.Builder _format = _newBuilder.format();
      SaveOptions _options = _format.getOptions();
      final String resultFormattedCode = this._iSerializer.serialize(model, _options);
      Assert.assertEquals(expectedFormattedSample, resultFormattedCode);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
View Full Code Here

      final String expectedFormattedSample = _builder_1.toString();
      final Model model = this.parser.parse(sample);
      this.validationHelper.assertNoErrors(model);
      SaveOptions.Builder _newBuilder = SaveOptions.newBuilder();
      SaveOptions.Builder _format = _newBuilder.format();
      SaveOptions _options = _format.getOptions();
      final String resultFormattedCode = this._iSerializer.serialize(model, _options);
      Assert.assertEquals(expectedFormattedSample, resultFormattedCode);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
View Full Code Here

      final ContainerType cloner = this._deepCloneUtils.asContainer(_get);
      ArrayList<String> _newArrayList = CollectionLiterals.<String>newArrayList("paragraph");
      this._deepCloneUtils.addFields(cloner, _newArrayList);
      SaveOptions.Builder _newBuilder = SaveOptions.newBuilder();
      SaveOptions.Builder _format = _newBuilder.format();
      SaveOptions _options = _format.getOptions();
      final String result = this._iSerializer.serialize(model, _options);
      StringConcatenation _builder_1 = new StringConcatenation();
      _builder_1.append("deepClone");
      _builder_1.newLine();
      _builder_1.append("package my.home.cloners");
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.resource.SaveOptions

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.