Examples of IExtensionPoint


Examples of org.eclipse.core.runtime.IExtensionPoint

    {
        List<IRepositoryType> repositories = new ArrayList<IRepositoryType>();

        IExtensionRegistry registry = Platform.getExtensionRegistry();

        IExtensionPoint p = registry.getExtensionPoint(SigilCore.REPOSITORY_PROVIDER_EXTENSION_POINT_ID);

        for (IExtension e : p.getExtensions())
        {
            for (IConfigurationElement c : e.getConfigurationElements())
            {
                repositories.add(toRepositoryType(e, c));
            }
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

     */
    public static EclipseRepositoryProviderWrapper getProvider(String alias)
    throws CoreException
    {
        IExtensionRegistry registry = Platform.getExtensionRegistry();
        IExtensionPoint p = registry.getExtensionPoint(SigilCore.REPOSITORY_PROVIDER_EXTENSION_POINT_ID);

        for (IExtension e : p.getExtensions())
        {
            for (IConfigurationElement c : e.getConfigurationElements())
            {
                if (alias.equals(c.getAttribute("alias")))
                {
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

    }

    private static IConfigurationElement findWizardConfig(String id)
    {
        IExtensionRegistry registry = Platform.getExtensionRegistry();
        IExtensionPoint p = registry.getExtensionPoint(SigilUI.REPOSITORY_WIZARD_EXTENSION_POINT_ID);

        for (IExtension e : p.getExtensions())
        {
            for (IConfigurationElement c : e.getConfigurationElements())
            {
                if (id.equals(c.getAttribute("repository")))
                {
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

            if (builders.isEmpty())
            {
                final HashMap<IOSGiInstallBuilder, Integer> tmp = new HashMap<IOSGiInstallBuilder, Integer>();

                IExtensionRegistry registry = Platform.getExtensionRegistry();
                IExtensionPoint p = registry.getExtensionPoint(SigilCore.INSTALL_BUILDER_EXTENSION_POINT_ID);
                for (IExtension e : p.getExtensions())
                {
                    for (IConfigurationElement c : e.getConfigurationElements())
                    {
                        createBuilderFromElement(c, tmp);
                    }
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

  public IExtension[] getExtensions(String extensionPoint) {
    if (this.registry == null) {
      this.registry = Activator.getActivator().getRegistry();
    }
    if (this.registry != null) {
      IExtensionPoint point = this.registry.getExtensionPoint(IDavinciServerConstants.BUNDLE_ID, extensionPoint);

      if (point != null) {
        return point.getExtensions();
      }
    }
    return ServerManager.EMPTY_EXTENSIONS;
  }
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

    }

    private void loadCommands() {
        IExtensionRegistry registry = Activator.getActivator().getRegistry();
        if (registry != null) {
            IExtensionPoint point = registry.getExtensionPoint(IDavinciServerConstants.BUNDLE_ID, IDavinciServerConstants.EXTENSION_POINT_COMMAND);

            if (point != null) {
                IExtension[] extensions = point.getExtensions();
                for (int i = 0; i < extensions.length; i++) {
                    IConfigurationElement[] elements = extensions[i].getConfigurationElements();
                    for (int j = 0; j < elements.length; j++) {
                        if (elements[j].getName().equals(IDavinciServerConstants.EP_TAG_COMMAND)) {
                            CommandDescriptor cmd = new CommandDescriptor(elements[j]);
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

      public static IExtension[] getExtensions(String extensionPoint) {
          if (registry == null) {
              registry = Activator.getActivator().getRegistry();
          }
          if (registry != null) {
              IExtensionPoint point = registry.getExtensionPoint(IDavinciServerConstants.BUNDLE_ID, extensionPoint);

              if (point != null) {
                  return point.getExtensions();
              }
          }
          return EMPTY_EXTENSIONS;
      }
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

  }
 
  private static void init() {
    if (FACTORIES == null) {
      FACTORIES = new ArrayList<IRepositoryProviderFactory>();
      final IExtensionPoint point = Platform.getExtensionRegistry().getExtensionPoint("org.pdtextensions.repos.factories");
      for (final IConfigurationElement element : point.getConfigurationElements()) {
        try {
          FACTORIES.add((IRepositoryProviderFactory) element.createExecutableExtension("class"));
        } catch (CoreException e) {
          // TODO logging
        }
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

        list.remove(b);
    }

    @Override
    public void loadCodepathExtensions() {
        final IExtensionPoint exPnt = BackendUtils.getCodepathExtension();
        final IExtension[] extensions = exPnt.getExtensions();
        for (int e = 0; e < extensions.length; e++) {
            final IExtension extension = extensions[e];
            if (!extension.isValid()) {
                continue;
            }
View Full Code Here

Examples of org.eclipse.core.runtime.IExtensionPoint

    readRegistry(EXTENSION_POINT_ID);
  }

  private void readRegistry(String extensionPointId) {
    IExtensionRegistry pluginRegistry = Platform.getExtensionRegistry();
    IExtensionPoint point = pluginRegistry.getExtensionPoint(XMLUIPlugin.ID, extensionPointId);
    if (point != null) {
      IConfigurationElement[] elements = point.getConfigurationElements();
      for (int i = 0; i < elements.length; i++) {
        readElement(elements[i]);
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.