Package at.bestsolution.efxclipse.tooling.pde.ui.templates

Examples of at.bestsolution.efxclipse.tooling.pde.ui.templates.JemmyLaunchDef


    Set<String> workspace = new HashSet<String>();
    Set<String> target = new HashSet<String>();
   
    calculateBundleDependencies(workspace, target, productBundle.getBundleDescription());
   
    JemmyLaunchDef d = new JemmyLaunchDef();
    d.setProjectName(p.getName());
    d.setJunitClassName(getValue(KEY_PACKAGE_NAME)+"." + getValue(KEY_TEST_SUITE_CLASS));
    d.setTestProductId(getValue(KEY_TEST_PRODUCT_BUNDLE_ID)+".product");
    if( getBooleanOption(KEY_TEST_E4_PRODUCT) ) {
      d.getTargetPlugins().addAll(JemmyLaunchDef.getTargetPluginsE4())
    } else {
      d.getTargetPlugins().addAll(JemmyLaunchDef.getTargetPluginsOSGi());
    }
   
    for( String t : target ) {
      d.getTargetPlugins().add(new PluginLaunchDef(t));
    }
    d.getWorkbenchPlugins().add(new PluginLaunchDef(model.getPluginBase().getId()));
    for( String w : workspace ) {
      d.getWorkbenchPlugins().add(new PluginLaunchDef(w));
    }
   
    return d;
  }
View Full Code Here


      };
    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();
    JemmyLaunchDef _jemmyLaunchDef = new JemmyLaunchDef();
    final JemmyLaunchDef launchDef = _jemmyLaunchDef;
    String _plus = (symbolicName + ".jemmy.TestSuite");
    launchDef.setJunitClassName(_plus);
    String _name = bundleProject.getName();
    String _plus_1 = (_name + ".jemmy");
    launchDef.setProjectName(_plus_1);
    String _plus_2 = (symbolicName + ".product");
    launchDef.setTestProductId(_plus_2);
    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> _targetPlugins_6 = launchDef.getTargetPlugins();
    PluginLaunchDef _pluginLaunchDef_6 = new PluginLaunchDef("at.bestsolution.efxclipse.runtime.jemmy");
    _targetPlugins_6.add(_pluginLaunchDef_6);
    Set<PluginLaunchDef> _targetPlugins_7 = launchDef.getTargetPlugins();
    PluginLaunchDef _pluginLaunchDef_7 = new PluginLaunchDef("org.eclipse.jdt.junit.runtime");
    _targetPlugins_7.add(_pluginLaunchDef_7);
    Set<PluginLaunchDef> _targetPlugins_8 = launchDef.getTargetPlugins();
    PluginLaunchDef _pluginLaunchDef_8 = new PluginLaunchDef("org.eclipse.jdt.junit4.runtime");
    _targetPlugins_8.add(_pluginLaunchDef_8);
    Set<PluginLaunchDef> _targetPlugins_9 = launchDef.getTargetPlugins();
    PluginLaunchDef _pluginLaunchDef_9 = new PluginLaunchDef("org.eclipse.osgi.services");
    _targetPlugins_9.add(_pluginLaunchDef_9);
    Set<PluginLaunchDef> _targetPlugins_10 = launchDef.getTargetPlugins();
    PluginLaunchDef _pluginLaunchDef_10 = new PluginLaunchDef("org.eclipse.pde.junit.runtime");
    _targetPlugins_10.add(_pluginLaunchDef_10);
    Set<PluginLaunchDef> _targetPlugins_11 = launchDef.getTargetPlugins();
    PluginLaunchDef _pluginLaunchDef_11 = new PluginLaunchDef("org.hamcrest.core");
    _targetPlugins_11.add(_pluginLaunchDef_11);
    Set<PluginLaunchDef> _targetPlugins_12 = launchDef.getTargetPlugins();
    PluginLaunchDef _pluginLaunchDef_12 = new PluginLaunchDef("org.jemmy.fx.repackaged");
    _targetPlugins_12.add(_pluginLaunchDef_12);
    Set<PluginLaunchDef> _targetPlugins_13 = launchDef.getTargetPlugins();
    PluginLaunchDef _pluginLaunchDef_13 = new PluginLaunchDef("org.junit*4.10.0.v4_10_0_v20120426-0900");
    _targetPlugins_13.add(_pluginLaunchDef_13);
    Set<PluginLaunchDef> _targetPlugins_14 = launchDef.getTargetPlugins();
    PluginLaunchDef _pluginLaunchDef_14 = new PluginLaunchDef("org.junit4");
    _targetPlugins_14.add(_pluginLaunchDef_14);
    Set<PluginLaunchDef> _workbenchPlugins = launchDef.getWorkbenchPlugins();
    PluginLaunchDef _pluginLaunchDef_15 = new PluginLaunchDef(symbolicName);
    _workbenchPlugins.add(_pluginLaunchDef_15);
    Set<PluginLaunchDef> _workbenchPlugins_1 = launchDef.getWorkbenchPlugins();
    String _plus_3 = (symbolicName + ".jemmy");
    PluginLaunchDef _pluginLaunchDef_16 = new PluginLaunchDef(_plus_3);
    _workbenchPlugins_1.add(_pluginLaunchDef_16);
    CharSequence _generate = this.generate(launchDef);
    String _string = _generate.toString();
View Full Code Here

TOP

Related Classes of at.bestsolution.efxclipse.tooling.pde.ui.templates.JemmyLaunchDef

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.