Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IProduct


        if (currentPage != null) {
            activeEditor = currentPage.getActiveEditor();
        }
       
        String title = "";
        IProduct product = Platform.getProduct();
        if (product != null) {
            title = product.getName();
        }

        if (currentPage != null) {
            if (activeEditor != null) {
                lastEditorTitle = activeEditor.getTitle();
View Full Code Here


   * 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

   *
   * @see org.eclipse.help.search.LuceneSearchParticipant#getAllDocuments(java.lang.String)
   */
  public Set getAllDocuments(String locale) {
    HashSet set = new HashSet();
    IProduct product = Platform.getProduct();
    if (product == null) {
      return set;
    }
    String productId = product.getId();
    IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor(
        "org.eclipse.ui.intro"); //$NON-NLS-1$
    String targetIntroId = null;
    for (int i = 0; i < elements.length; i++) {
      IConfigurationElement element = elements[i];
View Full Code Here

          resource = resource.substring(index + PLUGINS_ROOT.length());
          index = resource.indexOf('/');
          if (index != -1) {
            String bundleName = resource.substring(0, index);
            if (PRODUCT_PLUGIN.equals(bundleName)) {
              IProduct product = Platform.getProduct();
              if (product != null) {
                Bundle productBundle = product.getDefiningBundle();
                if (productBundle != null) {
                  bundleName = productBundle.getSymbolicName();
                }
              }
            }
View Full Code Here

   * product (either specified via help data xml file or deprecated comma-separated
   * list in plugin_customization.ini). Help data takes precedence.
   */
  public static List getPrimaryTocOrdering() {
    if (primaryTocOrdering == null) {
      IProduct product = Platform.getProduct();
      if (product != null) {
        String pluginId = product.getDefiningBundle().getSymbolicName();
        Preferences prefs = HelpPlugin.getDefault().getPluginPreferences();
        String helpDataFile = prefs.getString(HelpPlugin.HELP_DATA_KEY);
        String baseTOCS = prefs.getString(HelpPlugin.BASE_TOCS_KEY);
        primaryTocOrdering = getTocOrdering(pluginId, helpDataFile, baseTOCS);
      }
View Full Code Here

   * they are not active).
   */
  public static synchronized Properties[] getProductPreferences(boolean includeActiveProduct) {
    if (productPreferences == null) {
      String activeProductId = null;
      IProduct activeProduct = Platform.getProduct();
      if (activeProduct != null) {
        activeProductId = activeProduct.getId();
      }
      Collection collection = new ArrayList();
      IConfigurationElement[] elements = Platform.getExtensionRegistry().getConfigurationElementsFor("org.eclipse.core.runtime.products"); //$NON-NLS-1$
      for (int i=0;i<elements.length;++i) {
        if (elements[i].getName().equals("product")) { //$NON-NLS-1$
View Full Code Here

   */
  public static synchronized HelpData getProductHelpData() {
    if (productHelpData == null) {
      String helpDataFile = HelpPlugin.getDefault().getPluginPreferences().getString(HelpPlugin.HELP_DATA_KEY);
      if (helpDataFile.length() != 0) {
        IProduct product = Platform.getProduct();
        if (product != null) {
          URL url = product.getDefiningBundle().getEntry(helpDataFile);
          productHelpData = new HelpData(url);
        }
      }
    }
    return productHelpData;
View Full Code Here

  /*
   * Evaluates the "product" filter.
   */
  private boolean filterByProduct(String productId) {
    IProduct product = Platform.getProduct();
    if (product != null) {
      return !productId.equals(product.getId());
    }
    return false;
  }
View Full Code Here

   * 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

   * 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

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.