Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IExtension


                .getExtension(EXTENSION_ID);
        IExtension[] extensions = extensionPoint.getExtensions();

        for (int i = 0; i < extensions.length; i++)
        {
            IExtension ext = extensions[i];
            IConfigurationElement[] configElements = ext
                    .getConfigurationElements();

            for (int j = 0; j < configElements.length; j++)
            {
                final IConfigurationElement element = configElements[j];
View Full Code Here


  protected void readRegistry() {
    try {
      IExtensionPoint point = Platform.getExtensionRegistry().getExtensionPoint(JSFCorePlugin.PLUGIN_ID, ext_pt_id);
      IExtension[] extensions = point.getExtensions();
      for (int i=0;i < extensions.length;i++){
        IExtension ext = extensions[i];
        for (int j=0;j < ext.getConfigurationElements().length;j++){
          final String bundleId = ext.getConfigurationElements()[j].getContributor().getName();
          final String id = ext.getConfigurationElements()[j].getAttribute("id"); //$NON-NLS-1$
          String klass = ext.getConfigurationElements()[j].getAttribute("class"); //$NON-NLS-1$
          final String runtimeType = ext.getConfigurationElements()[j].getAttribute("runtime-type"); //$NON-NLS-1$
          if (klass == null || klass.trim().equals("")){ //$NON-NLS-1$
            klass = getDefaultClassName();
          }
          registerType(bundleId, id, klass, runtimeType);
        }
View Full Code Here

  protected void readRegistry() {
    try {
      IExtensionPoint point = Platform.getExtensionRegistry().getExtensionPoint(JSFCorePlugin.PLUGIN_ID, EXTPTID);
      IExtension[] extensions = point.getExtensions();
      for (int i=0;i < extensions.length;i++){
        IExtension ext = extensions[i];
        for (int j=0;j < ext.getConfigurationElements().length;j++){
          final String bundleId = ext.getConfigurationElements()[j].getContributor().getName();
          final String id = ext.getConfigurationElements()[j].getAttribute("typeid"); //$NON-NLS-1$
          final String klass = ext.getConfigurationElements()[j].getAttribute("class"); //$NON-NLS-1$
          registerFeature(bundleId, id, klass);
        }
      }
    } catch (InvalidRegistryObjectException e) {
      JSFCorePlugin.log(e, "Unable to read " + JSFCorePlugin.PLUGIN_ID + EXTPTID + " registry"); //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

  /**
   * Logs the error in the workbench log using the provided text and the
   * information in the configuration element.
   */
  protected void logError(IConfigurationElement element, String text) {
    IExtension extension = element.getDeclaringExtension();
    StringBuffer buf = new StringBuffer();
    buf.append("Plugin " + extension.getNamespace() + ", extension " + extension.getExtensionPointUniqueIdentifier()); //$NON-NLS-2$//$NON-NLS-1$
    buf.append("\n" + text); //$NON-NLS-1$
    Logger.log(Logger.ERROR, buf.toString());
  }
View Full Code Here

  private void loadJSFLibraryExtensions() {
    try {
      IExtensionPoint point = Platform.getExtensionRegistry().getExtensionPoint(JSFCorePlugin.PLUGIN_ID, LIB_EXT_PT);
      IExtension[] extensions = point.getExtensions();
      for (int i=0;i < extensions.length;i++){
        IExtension ext = extensions[i];
        for (int j=0;j < ext.getConfigurationElements().length;j++){
          PluginProvidedJSFLibraryCreationHelper2 newLibCreator = new PluginProvidedJSFLibraryCreationHelper2(ext.getConfigurationElements()[j]);           
          JSFLibrary newLib = newLibCreator.create();
         
          /**
           * Additional check on if a plug-in contributes jsflibraries is an expanded folder.
           * Fix related to bug 144954. 
View Full Code Here

  private void loadDeprecatedJSFLibraryExtensions() {
    try {
      IExtensionPoint point = Platform.getExtensionRegistry().getExtensionPoint(JSFCorePlugin.PLUGIN_ID, OLD_LIB_EXT_PT);
      IExtension[] extensions = point.getExtensions();
      for (int i=0;i < extensions.length;i++){
        IExtension ext = extensions[i];
        for (int j=0;j < ext.getConfigurationElements().length;j++){
          PluginProvidedJSFLibraryCreationHelper newLibCreator = new PluginProvidedJSFLibraryCreationHelper(ext.getConfigurationElements()[j]);           
          JSFLibrary newLib = newLibCreator.create();
         
          /**
           * Additional check on if a plug-in contributes jsflibraries is an expanded folder.
           * Fix related to bug 144954. 
View Full Code Here

      // A single plugin may extend the extension point more than once,
      // although it's not recommended.
      IConfigurationElement bestTranslator = null;
      IExtension[] extensions = extensionPoint.getExtensions();
      for (int curExtension = 0; curExtension < extensions.length; curExtension++) {
        IExtension extension = extensions[curExtension];

        IConfigurationElement[] translators = extension.getConfigurationElements();
        for (int curTranslator = 0; curTranslator < translators.length; curTranslator++) {

          IConfigurationElement elTranslator = translators[curTranslator];

          if (!EL_TRANSLATOR_EXTENSION_NAME.equals(elTranslator.getName())) { // -
View Full Code Here

  /**
   * Logs the error in the workbench log using the provided text and the
   * information in the configuration element.
   */
  protected void logError(IConfigurationElement element, String text) {
    IExtension extension = element.getDeclaringExtension();
    StringBuffer buf = new StringBuffer();
    buf.append("Plugin " + extension.getNamespace() + ", extension " + extension.getExtensionPointUniqueIdentifier()); //$NON-NLS-2$//$NON-NLS-1$
    buf.append("\n" + text); //$NON-NLS-1$
    Logger.log(Logger.ERROR, buf.toString());
  }
View Full Code Here

        .getExtensionPoint(PDPlugin.getPluginId(),
            IJMTConstants.EXTENSION_POINT_PAGEDESIGNER);
    IExtension[] extensions = extensionPoint.getExtensions();

    for (int i = 0; i < extensions.length; i++) {
      IExtension ext = extensions[i];
      IConfigurationElement[] linkHandlers = ext
          .getConfigurationElements();

      for (int j = 0; j < linkHandlers.length; j++) {
        if (linkHandlers[j].getName()
            .equals(IJMTConstants.LINK_CREATOR)) {
View Full Code Here

  private void loadJSFLibraryExtensions() {
    try {
      IExtensionPoint point = Platform.getExtensionRegistry().getExtensionPoint(TapestryCorePlugin.PLUGIN_ID, LIB_EXT_PT);
      IExtension[] extensions = point.getExtensions();
      for (int i=0;i < extensions.length;i++){
        IExtension ext = extensions[i];
        for (int j=0;j < ext.getConfigurationElements().length;j++){
          PluginProvidedTapestryLibraryCreationHelper2 newLibCreator = new PluginProvidedTapestryLibraryCreationHelper2(ext.getConfigurationElements()[j]);           
          TapestryLibrary newLib = newLibCreator.create();
         
          /**
           * Additional check on if a plug-in contributes jsflibraries is an expanded folder.
           * Fix related to bug 144954. 
View Full Code Here

TOP

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

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.