Examples of TargetPlatform


Examples of fr.obeo.releng.targetplatform.TargetPlatform

      _builder.append("\t");
      _builder.append("myu;version=[ 3 , 5 )");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      final TargetPlatform targetPlatform = this.parser.parse(_builder);
      Resource _eResource = targetPlatform.eResource();
      EList<Resource.Diagnostic> _errors = _eResource.getErrors();
      String _join = IterableExtensions.join(_errors, "\n");
      Resource _eResource_1 = targetPlatform.eResource();
      EList<Resource.Diagnostic> _errors_1 = _eResource_1.getErrors();
      boolean _isEmpty = _errors_1.isEmpty();
      Assert.assertTrue(_join, _isEmpty);
      EList<Location> _locations = targetPlatform.getLocations();
      final Location fisrtLocation = IterableExtensions.<Location>head(_locations);
      EList<IU> _ius = fisrtLocation.getIus();
      final IU iu0 = IterableExtensions.<IU>head(_ius);
      String _iD = iu0.getID();
      Assert.assertEquals("myu", _iD);
View Full Code Here

Examples of fr.obeo.releng.targetplatform.TargetPlatform

  @Fix(TargetPlatformValidator.DEPRECATE__OPTIONS_ON_LOCATIONS)
  public void moveOptionsToTargetLevel(final Issue issue, final IssueResolutionAcceptor acceptor) {
    final ISemanticModification _function = new ISemanticModification() {
      public void apply(final EObject element, final IModificationContext context) throws Exception {
        final Location location = ((Location) element);
        TargetPlatform _targetPlatform = location.getTargetPlatform();
        EList<Option> _options = _targetPlatform.getOptions();
        _options.clear();
        EList<Option> _options_1 = ((Location) element).getOptions();
        final Procedure1<Option> _function = new Procedure1<Option>() {
          public void apply(final Option it) {
            TargetPlatform _targetPlatform = location.getTargetPlatform();
            EList<Option> _options = _targetPlatform.getOptions();
            _options.add(it);
          }
        };
        IterableExtensions.<Option>forEach(_options_1, _function);
        TargetPlatform _targetPlatform_1 = location.getTargetPlatform();
        EList<Location> _locations = _targetPlatform_1.getLocations();
        final Procedure1<Location> _function_1 = new Procedure1<Location>() {
          public void apply(final Location it) {
            EList<Option> _options = it.getOptions();
            _options.clear();
          }
View Full Code Here

Examples of fr.obeo.releng.targetplatform.TargetPlatform

  @Fix(TargetPlatformValidator.CHECK__NO_OPTIONS_ON_LOCATIONS_IF_GLOBAL_OPTIONS)
  public void removeAllLocationSpecificOptions(final Issue issue, final IssueResolutionAcceptor acceptor) {
    final ISemanticModification _function = new ISemanticModification() {
      public void apply(final EObject element, final IModificationContext context) throws Exception {
        final Location location = ((Location) element);
        TargetPlatform _targetPlatform = location.getTargetPlatform();
        EList<Location> _locations = _targetPlatform.getLocations();
        final Procedure1<Location> _function = new Procedure1<Location>() {
          public void apply(final Location it) {
            EList<Option> _options = it.getOptions();
            _options.clear();
          }
View Full Code Here

Examples of fr.obeo.releng.targetplatform.TargetPlatform

      _builder.append("\t");
      _builder.append("myu;version=1.2.3.201404071200");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      final TargetPlatform targetPlatform = this.parser.parse(_builder);
      Resource _eResource = targetPlatform.eResource();
      EList<Resource.Diagnostic> _errors = _eResource.getErrors();
      String _join = IterableExtensions.join(_errors, "\n");
      Resource _eResource_1 = targetPlatform.eResource();
      EList<Resource.Diagnostic> _errors_1 = _eResource_1.getErrors();
      boolean _isEmpty = _errors_1.isEmpty();
      Assert.assertTrue(_join, _isEmpty);
      EList<Location> _locations = targetPlatform.getLocations();
      final Location fisrtLocation = IterableExtensions.<Location>head(_locations);
      EList<IU> _ius = fisrtLocation.getIus();
      final IU iu0 = IterableExtensions.<IU>head(_ius);
      String _iD = iu0.getID();
      Assert.assertEquals("myu", _iD);
View Full Code Here

Examples of fr.obeo.releng.targetplatform.TargetPlatform

        final String id = ((Location) element).getID();
        final String uri = ((Location) element).getUri();
        boolean _notEquals = (!Objects.equal(uri, null));
        if (_notEquals) {
          final Location location = ((Location) element);
          TargetPlatform _targetPlatform = location.getTargetPlatform();
          EList<Location> _locations = _targetPlatform.getLocations();
          final Function1<Location, Boolean> _function = new Function1<Location, Boolean>() {
            public Boolean apply(final Location it) {
              boolean _and = false;
              boolean _notEquals = (!Objects.equal(uri, null));
              if (!_notEquals) {
View Full Code Here

Examples of fr.obeo.releng.targetplatform.TargetPlatform

        String[] _data = issue.getData();
        final String id = _data[0];
        String[] _data_1 = issue.getData();
        final String uri = _data_1[1];
        final Location location = ((Location) element);
        TargetPlatform _targetPlatform = location.getTargetPlatform();
        EList<Location> _locations = _targetPlatform.getLocations();
        final Function1<Location, Boolean> _function = new Function1<Location, Boolean>() {
          public Boolean apply(final Location it) {
            boolean _and = false;
            boolean _notEquals = (!Objects.equal(uri, null));
            if (!_notEquals) {
View Full Code Here

Examples of fr.obeo.releng.targetplatform.TargetPlatform

      _builder.append("\t");
      _builder.append("com.google.guava.^source");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      final TargetPlatform tp = this.parser.parse(_builder);
      String _name = tp.getName();
      Assert.assertEquals("TP1", _name);
      EList<Location> _locations = tp.getLocations();
      final Function1<Location, EList<IU>> _function = new Function1<Location, EList<IU>>() {
        public EList<IU> apply(final Location it) {
          return it.getIus();
        }
      };
      List<EList<IU>> _map = ListExtensions.<Location, EList<IU>>map(_locations, _function);
      Iterable<IU> _flatten = Iterables.<IU>concat(_map);
      int _size = IterableExtensions.size(_flatten);
      Assert.assertEquals(2, _size);
      EList<Location> _locations_1 = tp.getLocations();
      final Function1<Location, List<String>> _function_1 = new Function1<Location, List<String>>() {
        public List<String> apply(final Location it) {
          EList<IU> _ius = it.getIus();
          final Function1<IU, String> _function = new Function1<IU, String>() {
            public String apply(final IU it) {
View Full Code Here

Examples of fr.obeo.releng.targetplatform.TargetPlatform

      _builder.append("\t");
      _builder.append("com.google.guava.source");
      _builder.newLine();
      _builder.append("}");
      _builder.newLine();
      final TargetPlatform tp = this.parser.parse(_builder);
      String _name = tp.getName();
      Assert.assertEquals("TP1", _name);
      EList<Location> _locations = tp.getLocations();
      final Function1<Location, EList<IU>> _function = new Function1<Location, EList<IU>>() {
        public EList<IU> apply(final Location it) {
          return it.getIus();
        }
      };
      List<EList<IU>> _map = ListExtensions.<Location, EList<IU>>map(_locations, _function);
      Iterable<IU> _flatten = Iterables.<IU>concat(_map);
      int _size = IterableExtensions.size(_flatten);
      Assert.assertEquals(2, _size);
      EList<Location> _locations_1 = tp.getLocations();
      final Function1<Location, List<String>> _function_1 = new Function1<Location, List<String>>() {
        public List<String> apply(final Location it) {
          EList<IU> _ius = it.getIus();
          final Function1<IU, String> _function = new Function1<IU, String>() {
            public String apply(final IU it) {
View Full Code Here

Examples of fr.obeo.releng.targetplatform.TargetPlatform

      _builder.append("target \"TP1\"");
      _builder.newLine();
      _builder.newLine();
      _builder.append("environment win32 x86_64 motif en_US JavaSE-1.7");
      _builder.newLine();
      final TargetPlatform tp = this.parser.parse(_builder);
      Resource _eResource = tp.eResource();
      EList<Resource.Diagnostic> _errors = _eResource.getErrors();
      String _join = IterableExtensions.join(_errors, "\n");
      Resource _eResource_1 = tp.eResource();
      EList<Resource.Diagnostic> _errors_1 = _eResource_1.getErrors();
      boolean _isEmpty = _errors_1.isEmpty();
      Assert.assertTrue(_join, _isEmpty);
      EList<TargetContent> _contents = tp.getContents();
      Iterable<Environment> _filter = Iterables.<Environment>filter(_contents, Environment.class);
      final Environment env = IterableExtensions.<Environment>head(_filter);
      String _operatingSystem = env.getOperatingSystem();
      Assert.assertEquals("win32", _operatingSystem);
      String _architecture = env.getArchitecture();
View Full Code Here

Examples of fr.obeo.releng.targetplatform.TargetPlatform

      _builder.newLine();
      _builder.append("environment win32 ");
      _builder.newLine();
      _builder.append("environment win32");
      _builder.newLine();
      final TargetPlatform targetPlatform = this.parser.parse(_builder);
      Resource _eResource = targetPlatform.eResource();
      EList<Resource.Diagnostic> _errors = _eResource.getErrors();
      String _join = IterableExtensions.join(_errors, "\n");
      Resource _eResource_1 = targetPlatform.eResource();
      EList<Resource.Diagnostic> _errors_1 = _eResource_1.getErrors();
      boolean _isEmpty = _errors_1.isEmpty();
      Assert.assertTrue(_join, _isEmpty);
      Resource _eResource_2 = targetPlatform.eResource();
      EList<Resource.Diagnostic> _errors_2 = _eResource_2.getErrors();
      boolean _isEmpty_1 = _errors_2.isEmpty();
      Assert.assertTrue(_isEmpty_1);
      Environment _environment = targetPlatform.getEnvironment();
      String _operatingSystem = _environment.getOperatingSystem();
      Assert.assertEquals("win32", _operatingSystem);
      Environment _environment_1 = targetPlatform.getEnvironment();
      String _windowingSystem = _environment_1.getWindowingSystem();
      Assert.assertEquals("win32", _windowingSystem);
      EList<TargetContent> _contents = targetPlatform.getContents();
      TargetContent _get = _contents.get(0);
      String _operatingSystem_1 = ((Environment) _get).getOperatingSystem();
      Assert.assertEquals("win32", _operatingSystem_1);
      EList<TargetContent> _contents_1 = targetPlatform.getContents();
      TargetContent _get_1 = _contents_1.get(0);
      String _windowingSystem_1 = ((Environment) _get_1).getWindowingSystem();
      Assert.assertEquals("win32", _windowingSystem_1);
      EList<TargetContent> _contents_2 = targetPlatform.getContents();
      TargetContent _get_2 = _contents_2.get(1);
      String _windowingSystem_2 = ((Environment) _get_2).getWindowingSystem();
      Assert.assertEquals("win32", _windowingSystem_2);
      EList<TargetContent> _contents_3 = targetPlatform.getContents();
      TargetContent _get_3 = _contents_3.get(1);
      String _operatingSystem_2 = ((Environment) _get_3).getOperatingSystem();
      Assert.assertEquals("win32", _operatingSystem_2);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.