Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Besedin2007-11-26 16:20:10 +0000
committerOleg Besedin2007-11-26 16:20:10 +0000
commit352285b5dbb64245dfb3679cf9c9c73e39318af0 (patch)
treeb949816eda1c59322f7264f223bb78e2a40abd98
parent9a5a5a76fd2400f90b84f38d6517833817003a5f (diff)
downloadrt.equinox.bundles-352285b5dbb64245dfb3679cf9c9c73e39318af0.tar.gz
rt.equinox.bundles-352285b5dbb64245dfb3679cf9c9c73e39318af0.tar.xz
rt.equinox.bundles-352285b5dbb64245dfb3679cf9c9c73e39318af0.zip
Bug 206938 request a way to find current Contributorsv20071126
-rw-r--r--bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/ExtensionRegistry.java5
-rw-r--r--bundles/org.eclipse.equinox.registry/src/org/eclipse/core/runtime/spi/IDynamicExtensionRegistry.java6
2 files changed, 11 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/ExtensionRegistry.java b/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/ExtensionRegistry.java
index edf536f4a..2828bb19c 100644
--- a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/ExtensionRegistry.java
+++ b/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/internal/registry/ExtensionRegistry.java
@@ -1306,6 +1306,11 @@ public class ExtensionRegistry implements IExtensionRegistry, IDynamicExtensionR
return true;
}
+ public IContributor[] getAllContributors() {
+ Collection contributors = registryObjects.getContributors().values();
+ return (IContributor[]) contributors.toArray(new IContributor[contributors.size()]);
+ }
+
/**
* <strong>EXPERIMENTAL</strong>. This method has been added as part of a work in progress.
* There is a guarantee neither that this API will work nor that it will remain the same.
diff --git a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/runtime/spi/IDynamicExtensionRegistry.java b/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/runtime/spi/IDynamicExtensionRegistry.java
index 15b2333c8..7fd773f7b 100644
--- a/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/runtime/spi/IDynamicExtensionRegistry.java
+++ b/bundles/org.eclipse.equinox.registry/src/org/eclipse/core/runtime/spi/IDynamicExtensionRegistry.java
@@ -54,4 +54,10 @@ public interface IDynamicExtensionRegistry {
*/
public boolean hasContributor(IContributor contributor);
+ /**
+ * Returns all contributors associated with the registry at this time.
+ * @return all contributors associated with the registry
+ */
+ public IContributor[] getAllContributors();
+
}

Back to the top