Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » order of extension point query results
order of extension point query results [message #261634] Thu, 15 July 2004 01:07 Go to next message
Eclipse UserFriend
hi,

when i define a new extension point and query its
contributions at runtime, is there a predictable order?

background:

my extension point enables plugins to create a tree of
things (i.e. containers of the spring framework). each
node of the tree corresponds to an extension of the
same extension point (but possibly in different plugins).

only the top node is independent of other nodes (extensions).
the lower nodes need their parent node to be created first.
in the extension i can specify the id of the "parent" extension
or null==top-level.

who is responsible for making sure that all my extensions are
processed in the proper order (parents first)?

cheers,
/eike


p.s. currently i achieve the desired behaviour without extension
points, but by implementing IStartup and actively fetching the
parent handle in the contributing plugin. this way, the proper order
is managed by eclipse's dependency mechanism. now i'd like to have
the same behaviour in a headless environment, but IStartup is in
org.eclipse.ui, which i'd like to exclude from the dependency list...
Re: order of extension point query results [message #261778 is a reply to message #261634] Thu, 15 July 2004 10:28 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.NO.SPAM.us.ibm.com

The order is undefined, but by the time you start reading them they will
all be there, so you can build the list dynamically. You may need to do
several passes through the extensions list to find the parent if it
comes after the child node.


--
Thanks, Rich Kulp

Previous Topic:Need help with binding Cntl-l to recenter as in emacs
Next Topic:bundle.getResource() returning null
Goto Forum:
  


Current Time: Sat Aug 23 00:50:46 EDT 2025

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

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

Back to the top