Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IExtension


      HashMap allTypes= new HashMap();
      IExtensionPoint point= Platform.getExtensionRegistry().getExtensionPoint(ResourcesPlugin.PI_RESOURCES, ResourcesPlugin.PT_MARKERS);
      if (point != null) {
        IExtension[] extensions = point.getExtensions();
        for (int i= 0; i < extensions.length; i++) {
          IExtension extension= extensions[i];
          ArrayList types= new ArrayList();
          IConfigurationElement[] configElements= extension.getConfigurationElements();
          for (int j= 0; j < configElements.length; ++j) {
            IConfigurationElement element= configElements[j];
            if (element.getName().equalsIgnoreCase("super")) { //$NON-NLS-1$
              String type = element.getAttribute("type"); //$NON-NLS-1$
              if (type != null) {
                types.add(type);
              }
            }
          }
          String[] superTypes= new String[types.size()];
          types.toArray(superTypes);
          allTypes.put(extension.getUniqueIdentifier(), superTypes);
        }
      }
      return allTypes;
    }
View Full Code Here


          Set entries= fDescriptorMapping.entrySet();
          Iterator iter= entries.iterator();
          while (iter.hasNext()) {
            Map.Entry entry= (Map.Entry)iter.next();
            if (bundleName.equals(entry.getValue())) {
                IExtension extension = getConfigurationElement(entry.getKey()).getDeclaringExtension();
              return extension.getExtensionPointUniqueIdentifier();
            }
          }
        }
      }
      return "unknown"//$NON-NLS-1$
View Full Code Here

    IActionSetDescriptor[] actionSets = reg.getActionSets();
    String actionSetId = "ru.runa.jbpm.ui.actionSet";
    for (int i = 0; i < actionSets.length; i++) {
      if (actionSets[i].getId().equals(actionSetId))
        continue;
      IExtension ext = actionSets[i].getConfigurationElement().getDeclaringExtension();
      reg.removeExtension(ext, new Object[] { actionSets[i] });
    }
        IContextService contextService = (IContextService) PlatformUI.getWorkbench().getService(IContextService.class);
        contextService.activateContext("ru.runa.jbpm.ui.context");
  }
View Full Code Here

  private void loadExtensions() {
    try {
      final IExtensionPoint extPoint = Platform.getExtensionRegistry().getExtensionPoint(PDPlugin.getPluginId(), IJMTConstants.EXTENSION_POINT_PAGEDESIGNER);
      final IExtension[] extensions = extPoint.getExtensions();
      for (int i = 0; i < extensions.length; i++) {
        final IExtension extension = extensions[i];
        final IConfigurationElement[] confElements = extension.getConfigurationElements();
        for (int j = 0; j < confElements.length; j++) {
          final IConfigurationElement confElement = confElements[j];
          if (confElement.getName().equals(IJMTConstants.DT_RESOURCE_PROVIDER)) {
            final String id = confElement.getAttribute("id"); //$NON-NLS-1$
            final String providerClassName = confElement.getAttribute("class"); //$NON-NLS-1$
View Full Code Here

    try {
      _tagTransformOpsRegistry = new HashMap<String, Class>();
      IExtensionPoint point = Platform.getExtensionRegistry().getExtensionPoint(PDPlugin.getPluginId(), IJMTConstants.EXTENSION_POINT_PAGEDESIGNER);
      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++){
          if (ext.getConfigurationElements()[j].getName()
              .equals(IJMTConstants.TAG_TRANSFORM_OPERATION)) {             
            registerTransformOperation(ext.getConfigurationElements()[j]);         
          }       
        }
      }
    } catch (InvalidRegistryObjectException e) {
      log.error("Warning.TransformOperationFactory.RegistryError", PDPlugin.getPluginId()+IJMTConstants.EXTENSION_POINT_PAGEDESIGNER+"."+IJMTConstants.TAG_TRANSFORM_OPERATION, e); //$NON-NLS-1$ //$NON-NLS-2$
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[] facs = ext.getConfigurationElements();

      for (int j = 0; j < facs.length; j++) {
        if (facs[j].getName().equals(
            IJMTConstants.TAG_ATTRIBUTE_CELLEDITOR_FACTORY)) {
          Object obj;
View Full Code Here

                        IJMTConstants.EXTENSION_POINT_PAGEDESIGNER);
        IExtension[] extensions = extensionPoint.getExtensions();

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

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

                        IJMTConstants.EXTENSION_POINT_PAGEDESIGNER);
        IExtension[] extensions = extensionPoint.getExtensions();

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

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

                        IJMTConstants.EXTENSION_POINT_PAGEDESIGNER);
        IExtension[] extensions = extensionPoint.getExtensions();

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

            for (int j = 0; j < elementEditElement.length; j++)
            {
                final IConfigurationElement element = elementEditElement[j];
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[] dropHandlers = ext
          .getConfigurationElements();

      for (int j = 0; j < dropHandlers.length; j++) {
        if (dropHandlers[j].getName().equals(
            IJMTConstants.LOCAL_DROP_HANDLER)) {
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.