Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » OSGi and plugin order
OSGi and plugin order [message #191647] Mon, 09 February 2004 17:34 Go to next message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

I used to use IPluginVisitor and PluginRegistry.accept(visitor, boolean)

so that I could process the extensions for an extension point in plugin
dependency order. I must process the extensions such that any extensions
for pre-reqed plugins were processed before the dependent plugin, and
all plugins were visted only once.

I know this was internal, but it is now gone. Is there a new way to do
this. One that is API? I don't know anything about OSGi other than what
was said in the discussion on the Eclipse org site about it.

--
Thanks, Rich Kulp

Re: OSGi and plugin order [message #192318 is a reply to message #191647] Tue, 10 February 2004 22:42 Go to previous message
Eclipse UserFriend
Originally posted by: jeff_mcaffer_REMOVE.ca.ibm.com

Rich,

Extensions and extension points are part of the Eclipse runtime (as opposed
to being part of the OSGi framework). There is a new registry
(IExtensionRegistry). Since the extension-extension point relationship is
separate from the plugin dependency relationship, there is no general way to
provide the traversal you want. Put more simply, just because A provides an
extension to some point in B does not mean that A explicitly or implicitly
depends on B.

I'm not sure what you are trying to do but the standard approach we take is
to process the elements in whatever order and remember the orphans and then
hook them up as you discover more.

Sidenote: To be a good citizen in the new dynamic world (if that is
interesting in your scenarios), you should also consider listening for
registry events and updating your structures as things come and go.

Jeff

"Rich Kulp" <richkulp@NO.SPAM.us.ibm.com> wrote in message
news:c091om$f3s$1@eclipse.org...
> I used to use IPluginVisitor and PluginRegistry.accept(visitor, boolean)
>
> so that I could process the extensions for an extension point in plugin
> dependency order. I must process the extensions such that any extensions
> for pre-reqed plugins were processed before the dependent plugin, and
> all plugins were visted only once.
>
> I know this was internal, but it is now gone. Is there a new way to do
> this. One that is API? I don't know anything about OSGi other than what
> was said in the discussion on the Eclipse org site about it.
>
> --
> Thanks, Rich Kulp
> 
>
Previous Topic:First Use of Eclipse 2.0
Next Topic:Can't build project: org.osgi.framework.BundleActivator Missing
Goto Forum:
  


Current Time: Tue May 13 03:48:04 EDT 2025

Powered by FUDForum. Page generated in 0.05013 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top