Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IExtensionPoint


    // Search for extension point to get the possible deprecation message
    Plugin jdtCorePlugin = JavaCore.getPlugin();
    if (jdtCorePlugin == null) return null;

    IExtensionPoint extension = Platform.getExtensionRegistry().getExtensionPoint(JavaCore.PLUGIN_ID, JavaModelManager.CPVARIABLE_INITIALIZER_EXTPOINT_ID);
    if (extension != null) {
      IExtension[] extensions =  extension.getExtensions();
      for(int i = 0; i < extensions.length; i++){
        IConfigurationElement [] configElements = extensions[i].getConfigurationElements();
        for(int j = 0; j < configElements.length; j++){
          IConfigurationElement configElement = configElements[j];
          String varAttribute = configElement.getAttribute("variable"); //$NON-NLS-1$
View Full Code Here


  public static ClasspathVariableInitializer getClasspathVariableInitializer(String variable){

    Plugin jdtCorePlugin = JavaCore.getPlugin();
    if (jdtCorePlugin == null) return null;

    IExtensionPoint extension = Platform.getExtensionRegistry().getExtensionPoint(JavaCore.PLUGIN_ID, JavaModelManager.CPVARIABLE_INITIALIZER_EXTPOINT_ID);
    if (extension != null) {
      IExtension[] extensions =  extension.getExtensions();
      for(int i = 0; i < extensions.length; i++){
        IConfigurationElement [] configElements = extensions[i].getConfigurationElements();
        for(int j = 0; j < configElements.length; j++){
          IConfigurationElement configElement = configElements[j];
          try {
View Full Code Here

  public static void registerLnfAdapter(String classname, ILookAndFeelAdapter lnfAdapter) {
    lnfAdapters.put(classname, lnfAdapter);
  }

  private static void parseInvisibleAdapters() {
    IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(INVISIBLE_ADPTER_EXTENSION_POINT);
    if (extensionPoint != null) {
      IExtension[] extensions = extensionPoint.getExtensions();
      if (extensions != null && extensions.length > 0) {
        for (int i = 0; i < extensions.length; i++) {
          parseInvisibleExtension(extensions[i]);
        }
      }
View Full Code Here

  public static ILookAndFeelAdapter getLnfAdapter(String lnfClassname) {
    return lnfAdapters.get(lnfClassname);
  }

  private static void parseLnfExtensions() {
    IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(LOOKANDFEEL_EXTENSION_POINT);
    if (extensionPoint != null) {
      IExtension[] extensions = extensionPoint.getExtensions();
      if (extensions != null && extensions.length > 0) {
        for (int i = 0; i < extensions.length; i++) {
          parseLnfExtension(extensions[i]);
        }
      }
View Full Code Here

  public static Sorting getSortingByKey(String id) {
    return propertySortings.get(id);
  }

  private static void parseTypeExtensions() {
    IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(TYPE_EXTENSION_POINT);
    if (extensionPoint != null) {
      IExtension[] extensions = extensionPoint.getExtensions();
      if (extensions != null && extensions.length > 0) {
        for (int i = 0; i < extensions.length; i++) {
          parseTypeExtension(extensions[i]);
        }
      }
View Full Code Here

      }
    }
  }

  private static void parseContextMenus() {
    IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(CUSTOMIZED_CONTEXT_MENU_EXTENSION_POINT);
    if (extensionPoint != null) {
      IExtension[] extensions = extensionPoint.getExtensions();
      if (extensions != null && extensions.length > 0) {
        for (int i = 0; i < extensions.length; i++) {
          parseContextExtension(extensions[i]);
        }
      }
View Full Code Here

      }
    }
  }

  private static void parseRenamingListeners() {
    IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(RENAMING_LISTENER_EXTENSION_POINT);
    if (extensionPoint != null) {
      IExtension[] extensions = extensionPoint.getExtensions();
      if (extensions != null && extensions.length > 0) {
        for (int i = 0; i < extensions.length; i++) {
          parseRenamingListener(extensions[i]);
        }
      }
View Full Code Here

      }
    }
  }

  private static void parseSelectionListeners() {
    IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(SELECTION_LISTENER_EXTENSION_POINT);
    if (extensionPoint != null) {
      IExtension[] extensions = extensionPoint.getExtensions();
      if (extensions != null && extensions.length > 0) {
        for (int i = 0; i < extensions.length; i++) {
          parseSelectionListener(extensions[i]);
        }
      }
View Full Code Here

      }
    }
  }

  private static void parsePropertyListeners() {
    IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(PROPERTY_LISTENER_EXTENSION_POINT);
    if (extensionPoint != null) {
      IExtension[] extensions = extensionPoint.getExtensions();
      if (extensions != null && extensions.length > 0) {
        for (int i = 0; i < extensions.length; i++) {
          parsePropertyListener(extensions[i]);
        }
      }
View Full Code Here

      }
    }
  }

  private static void parseWidgetListeners() {
    IExtensionPoint extensionPoint = Platform.getExtensionRegistry().getExtensionPoint(WIDGET_LISTENER_EXTENSION_POINT);
    if (extensionPoint != null) {
      IExtension[] extensions = extensionPoint.getExtensions();
      if (extensions != null && extensions.length > 0) {
        for (int i = 0; i < extensions.length; i++) {
          parseWidgetListener(extensions[i]);
        }
      }
View Full Code Here

TOP

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

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.