Examples of TargetPlatform


Examples of fr.obeo.releng.targetplatform.TargetPlatform

      int _length_1 = _text_2.length();
      boolean _lessThan = (_length_1 < currentNodeSizeToCursor);
      _or = _lessThan;
    }
    if (_or) {
      final TargetPlatform tp = ((TargetPlatform) model);
      EList<Option> _options = tp.getOptions();
      boolean _isEmpty = _options.isEmpty();
      if (_isEmpty) {
        ICompletionProposal _createCompletionProposal = this.createCompletionProposal("with", "describe how the set of elements to add to this target is determined", TargetPlatformProposalProvider.OPTIONS, 520, context);
        acceptor.accept(_createCompletionProposal);
      }
      Environment _environment = tp.getEnvironment();
      boolean _equals = Objects.equal(_environment, null);
      if (_equals) {
        ICompletionProposal _createCompletionProposal_1 = this.createCompletionProposal("environment", "describe the system that this target is built for", TargetPlatformProposalProvider.ENVIRONMENT, 510, context);
        acceptor.accept(_createCompletionProposal_1);
      }
View Full Code Here

Examples of fr.obeo.releng.targetplatform.TargetPlatform

      StringConcatenation _builder = new StringConcatenation();
      _builder.append("target \"a target platform\"");
      _builder.newLine();
      _builder.append("environment win32 linux");
      _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("linux", _operatingSystem);
      Environment _environment_1 = targetPlatform.getEnvironment();
      String _windowingSystem = _environment_1.getWindowingSystem();
      Assert.assertEquals("win32", _windowingSystem);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
View Full Code Here

Examples of fr.obeo.releng.targetplatform.TargetPlatform

      StringConcatenation _builder = new StringConcatenation();
      _builder.append("target \"a target platform\"");
      _builder.newLine();
      _builder.append("environment win32 cocoa");
      _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("cocoa", _windowingSystem);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
View Full Code Here

Examples of fr.obeo.releng.targetplatform.TargetPlatform

      StringConcatenation _builder = new StringConcatenation();
      _builder.append("target \"a target platform\"");
      _builder.newLine();
      _builder.append("environment linux 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("linux", _operatingSystem);
      Environment _environment_1 = targetPlatform.getEnvironment();
      String _windowingSystem = _environment_1.getWindowingSystem();
      Assert.assertEquals("win32", _windowingSystem);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
View Full Code Here

Examples of fr.obeo.releng.targetplatform.TargetPlatform

      StringConcatenation _builder = new StringConcatenation();
      _builder.append("target \"a target platform\"");
      _builder.newLine();
      _builder.append("environment cocoa 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("cocoa", _windowingSystem);
    } catch (Throwable _e) {
      throw Exceptions.sneakyThrow(_e);
    }
View Full Code Here

Examples of fr.obeo.releng.targetplatform.TargetPlatform

      _builder.append("\t");
      _builder.append("com.google.guava 1.2.0");
      _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 Function1<Location, List<String>> _function = 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) {
              return it.getID();
            }
          };
          return ListExtensions.<IU, String>map(_ius, _function);
        }
      };
      List<List<String>> _map = ListExtensions.<Location, List<String>>map(_locations, _function);
      final Iterable<String> ids = Iterables.<String>concat(_map);
      EList<Location> _locations_1 = targetPlatform.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 [1.2.0 , 2.4.54)");
      _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 Function1<Location, List<String>> _function = 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) {
              return it.getID();
            }
          };
          return ListExtensions.<IU, String>map(_ius, _function);
        }
      };
      List<List<String>> _map = ListExtensions.<Location, List<String>>map(_locations, _function);
      final Iterable<String> ids = Iterables.<String>concat(_map);
      EList<Location> _locations_1 = targetPlatform.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("org.apacahe.commons");
      _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 Function1<Location, List<String>> _function = 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) {
              return it.getID();
            }
          };
          return ListExtensions.<IU, String>map(_ius, _function);
        }
      };
      List<List<String>> _map = ListExtensions.<Location, List<String>>map(_locations, _function);
      final Iterable<String> ids = Iterables.<String>concat(_map);
      EList<Location> _locations_1 = targetPlatform.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("org.apacahe.commons");
      _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 Function1<Location, List<String>> _function = 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) {
              return it.getID();
            }
          };
          return ListExtensions.<IU, String>map(_ius, _function);
        }
      };
      List<List<String>> _map = ListExtensions.<Location, List<String>>map(_locations, _function);
      final Iterable<String> ids = Iterables.<String>concat(_map);
      EList<Location> _locations_1 = targetPlatform.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

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public String getOperatingSystem() {
    TargetPlatform _targetPlatform = this.getTargetPlatform();
    EList<TargetContent> _contents = _targetPlatform.getContents();
    Iterable<Environment> _filter = Iterables.<Environment>filter(_contents, Environment.class);
    final Function1<Environment, EList<String>> _function = new Function1<Environment, EList<String>>() {
      public EList<String> apply(final Environment it) {
        return it.getEnv();
      }
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.