Package org.eclipse.core.runtime

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


    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

TOP

Related Classes of org.eclipse.core.runtime.IProduct

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.