Skip to main content



      Home
Home » Eclipse Projects » Platform - User Assistance (UA) » Intro: extensions to extensionContent
Intro: extensions to extensionContent [message #469020] Thu, 15 March 2007 21:25 Go to next message
Eclipse UserFriend
What determines the order in which extensionContent contributions are
loaded?

I tried to use extensionContent that contains anchors, with other
extensionContent (contributed by other plug-ins) targeting those anchors,
but I could not get it to work.

Looking at the -debug log, it appears that org.eclipse.ui.intro loads the
extensionContent contributions in indeterminate order, so some lower-level
contributions are loaded before the higher-level contributions, even those
contributed by the primary "intro" plug-in (i.e., the plug-in that declares
org.eclipse.ui.intro and org.eclipse.ui.intro.config extensions).

Is there any option other than: a) avoiding such "nested" extensionContent
contributions, or b) implementing my own late-target-path resolver?

Thanks.
Re: Intro: extensions to extensionContent [message #469022 is a reply to message #469020] Fri, 16 March 2007 11:55 Go to previous message
Eclipse UserFriend
Never mind... user error (my mistake).

My target paths in the extensions to extensionContent incorrectly referred
to the first extension's anchor target.

For example:

<!-- primary introContent file -->
<introContent>
<page id="root-page">
<anchor id="root-target"/>
</page>
</introContent>

<!-- primary extension file -->
<introContent>
<extensionContent path="root-page/root-target">
<group id="ext-group">
<anchor id="ext-target"/>
</group>
</extensionContent>
</introContent>

<!-- secondary extension file -->
<introContent>
<!-- next line is incorrect path -->
<extensionContent path="root-page/root-target/ext-group/ext-target">
...
</extensionContent>
</introContent>

The correct secondary extension path should assume the primary extension's
path has been resolved, so:

<extensionContent path="root-page/ext-group/ext-target">

This works as it should.

DR
Re: Intro: extensions to extensionContent [message #560288 is a reply to message #469020] Fri, 16 March 2007 11:55 Go to previous message
Eclipse UserFriend
Never mind... user error (my mistake).

My target paths in the extensions to extensionContent incorrectly referred
to the first extension's anchor target.

For example:

<!-- primary introContent file -->
<introContent>
<page id="root-page">
<anchor id="root-target"/>
</page>
</introContent>

<!-- primary extension file -->
<introContent>
<extensionContent path="root-page/root-target">
<group id="ext-group">
<anchor id="ext-target"/>
</group>
</extensionContent>
</introContent>

<!-- secondary extension file -->
<introContent>
<!-- next line is incorrect path -->
<extensionContent path="root-page/root-target/ext-group/ext-target">
...
</extensionContent>
</introContent>

The correct secondary extension path should assume the primary extension's
path has been resolved, so:

<extensionContent path="root-page/ext-group/ext-target">

This works as it should.

DR
Previous Topic:an Eclipse launch config specifically for Help?
Next Topic:Consider creating a wiki page for UA?
Goto Forum:
  


Current Time: Tue May 20 22:30:25 EDT 2025

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

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

Back to the top