order of extension point query results [message #261634] |
Thu, 15 July 2004 01:07  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03507 seconds