Package at.bestsolution.efxclipse.tooling.pde.e4.project.template

Examples of at.bestsolution.efxclipse.tooling.pde.e4.project.template.NativeLaunchData


  }
 
  public InputStream generate(final DynamicFile file, final Map<String,Object> data) {
    RobotTask _findRoot = this.findRoot(file);
    final RobotTask robotTask = ((RobotTask) _findRoot);
    E4LaunchDef _e4LaunchDef = new E4LaunchDef();
    final E4LaunchDef launchDef = _e4LaunchDef;
    EList<Project> _projects = robotTask.getProjects();
    final Function1<Project,Boolean> _function = new Function1<Project,Boolean>() {
        public Boolean apply(final Project e) {
          return Boolean.valueOf((e instanceof FeatureProject));
        }
      };
    Project _findFirst = IterableExtensions.<Project>findFirst(_projects, _function);
    final FeatureProject plugin = ((FeatureProject) _findFirst);
    EList<Project> _projects_1 = robotTask.getProjects();
    final Function1<Project,Boolean> _function_1 = new Function1<Project,Boolean>() {
        public Boolean apply(final Project e) {
          return Boolean.valueOf((e instanceof BundleProject));
        }
      };
    Project _findFirst_1 = IterableExtensions.<Project>findFirst(_projects_1, _function_1);
    final BundleProject bundleProject = ((BundleProject) _findFirst_1);
    ManifestFile _manifest = bundleProject.getManifest();
    final String symbolicName = _manifest.getSymbolicname();
    String _name = bundleProject.getName();
    launchDef.setProjectName(_name);
    boolean _notEquals = (!Objects.equal(plugin, null));
    if (_notEquals) {
      FeatureFile _feature = plugin.getFeature();
      EList<FeaturePlugin> _plugins = _feature.getPlugins();
      for (final FeaturePlugin fp : _plugins) {
        String _id = fp.getId();
        boolean _equals = symbolicName.equals(_id);
        if (_equals) {
        } else {
          String _id_1 = fp.getId();
          boolean _equals_1 = "org.eclipse.core.runtime.compatibility.registry".equals(_id_1);
          if (_equals_1) {
            Set<PluginLaunchDef> _targetPlugins = launchDef.getTargetPlugins();
            String _id_2 = fp.getId();
            PluginLaunchDef _pluginLaunchDef = new PluginLaunchDef(_id_2, "default", "false");
            _targetPlugins.add(_pluginLaunchDef);
          } else {
            String _id_3 = fp.getId();
            boolean _equals_2 = "org.eclipse.core.runtime".equals(_id_3);
            if (_equals_2) {
              Set<PluginLaunchDef> _targetPlugins_1 = launchDef.getTargetPlugins();
              String _id_4 = fp.getId();
              PluginLaunchDef _pluginLaunchDef_1 = new PluginLaunchDef(_id_4, "default", "true");
              _targetPlugins_1.add(_pluginLaunchDef_1);
            } else {
              String _id_5 = fp.getId();
              boolean _equals_3 = "org.eclipse.equinox.common".equals(_id_5);
              if (_equals_3) {
                Set<PluginLaunchDef> _targetPlugins_2 = launchDef.getTargetPlugins();
                String _id_6 = fp.getId();
                PluginLaunchDef _pluginLaunchDef_2 = new PluginLaunchDef(_id_6, "2", "true");
                _targetPlugins_2.add(_pluginLaunchDef_2);
              } else {
                String _id_7 = fp.getId();
                boolean _equals_4 = "org.eclipse.equinox.ds".equals(_id_7);
                if (_equals_4) {
                  Set<PluginLaunchDef> _targetPlugins_3 = launchDef.getTargetPlugins();
                  String _id_8 = fp.getId();
                  PluginLaunchDef _pluginLaunchDef_3 = new PluginLaunchDef(_id_8, "1", "true");
                  _targetPlugins_3.add(_pluginLaunchDef_3);
                } else {
                  String _id_9 = fp.getId();
                  boolean _equals_5 = "org.eclipse.osgi".equals(_id_9);
                  if (_equals_5) {
                    Set<PluginLaunchDef> _targetPlugins_4 = launchDef.getTargetPlugins();
                    String _id_10 = fp.getId();
                    PluginLaunchDef _pluginLaunchDef_4 = new PluginLaunchDef(_id_10, "-1", "true");
                    _targetPlugins_4.add(_pluginLaunchDef_4);
                  } else {
                    Set<PluginLaunchDef> _targetPlugins_5 = launchDef.getTargetPlugins();
                    String _id_11 = fp.getId();
                    PluginLaunchDef _pluginLaunchDef_5 = new PluginLaunchDef(_id_11);
                    _targetPlugins_5.add(_pluginLaunchDef_5);
                  }
                }
              }
            }
          }
        }
      }
      Set<PluginLaunchDef> _workbenchPlugins = launchDef.getWorkbenchPlugins();
      PluginLaunchDef _pluginLaunchDef_6 = new PluginLaunchDef(symbolicName);
      _workbenchPlugins.add(_pluginLaunchDef_6);
    }
    CharSequence _generate = this.generate(launchDef);
    String _string = _generate.toString();
View Full Code Here


    final String osArch = (_plus_2 + _property_2);
    String _plus_3 = ("../" + projectName);
    String _plus_4 = (_plus_3 + ".product/target/");
    String _plus_5 = (_plus_4 + osArch);
    String _plus_6 = (_plus_5 + "/eclipse");
    NativeLaunchData _nativeLaunchData = new NativeLaunchData(_plus_6, productName, vendorName);
    final NativeLaunchData launcherdata = _nativeLaunchData;
    NativeLaunchGenerator _nativeLaunchGenerator = new NativeLaunchGenerator();
    final NativeLaunchGenerator gen = _nativeLaunchGenerator;
    CharSequence _generate = gen.generate(launcherdata);
    String _string = _generate.toString();
    byte[] _bytes = _string.getBytes();
View Full Code Here

TOP

Related Classes of at.bestsolution.efxclipse.tooling.pde.e4.project.template.NativeLaunchData

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.