Examples of IProduct


Examples of org.eclipse.core.runtime.IProduct

   * The -testApplication argument specifies the application to be run. If the PDE JUnit launcher did not set this
   * argument, then return the name of the default application. In 3.0, the default is the
   * "org.eclipse.ui.ide.worbench" application.
   */
  private String getApplicationToRun(String[] args) {
    IProduct product = Platform.getProduct();
    if (product != null)
      return product.getApplication();
    for (int i = 0; i < args.length; i++)
      if (args[i].equals("-testApplication") && (i < args.length - 1)) //$NON-NLS-1$
        return args[i + 1];
    return DEFAULT_APP_3_0;
  }
View Full Code Here

Examples of org.eclipse.core.runtime.IProduct

    executorService = Executors.newCachedThreadPool(new ThreadFactory() {
     
      public Thread newThread(Runnable runnable) {
        Version version = Version.parseVersion(getPluginVersion());
        String productId = "Spring IDE";
        IProduct product = Platform.getProduct();
        if (product != null && "com.springsource.sts".equals(product.getId()))
            productId = "STS";
        Thread reportingThread = new Thread(runnable, String.format(THREAD_NAME_TEMPLATE, threadCount.incrementAndGet(),
            productId, version.getMajor(), version.getMinor(), version.getMicro()));
        reportingThread.setDaemon(true);
        return reportingThread;
View Full Code Here

Examples of org.eclipse.pde.internal.core.iproduct.IProduct

    for (int i = 0; i < products.size(); i++)
    {
      final IFile product = (IFile) products.get(i);
      final WorkspaceProductModel wpm = new WorkspaceProductModel(product, false);
      wpm.load();
      final IProduct prod = wpm.getProduct();

      final File zipFile = new File(ResourcesPlugin.getWorkspace().getRoot().getLocation().toFile(), product.getName().substring(0, product.getName().length() - 8) + ".zip");

      SysOutProgressMonitor.out.println("Exporting Eclipse Product using '" + product.getLocation() + "' as configuration to: " + zipFile);

      final FeatureExportInfo info = new FeatureExportInfo();
      info.useJarFormat = true;
      info.zipFileName = zipFile.getName();
      if (prod.useFeatures())
      {
        info.items = getFeatures(prod);
      }
      else
      {
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.