Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » Addons execution order changed in Eclipse 4.4
Addons execution order changed in Eclipse 4.4 [message #1397247] Wed, 09 July 2014 08:43 Go to next message
Eclipse UserFriend
Hello,


I'm working on a pure e4 application, that basically only contains an Application.e4xmi and defines a LifeCycleHandler with corresponding life cycle annotations.

I need the product highly modular therefore I rely on the E4 extension parsing to load modules.

Each module starts, registers and do things through its x.y.z.ModuleNameAddon defined within a fragment.e4xmi, eventually with other model things (perspectives, parts, etc.).

With Eclipse 4.3, addons were executed respecting the order of required plugins : if a plugin A required a plugin B, the BAddon was executed before AAddon.

In Eclipse 4.4 it seems this order isn't respected anymore which causes me many problems. Was it done on purpose or is it a regression ?

The problem may have been introduced when refactoring ModelAssembler.topoSort() to ExtensionsSort().sort()


I remain at your disposal for any further information.


Regards,

Pierre GAUTIER
Re: Addons execution order changed in Eclipse 4.4 [message #1397250 is a reply to message #1397247] Wed, 09 July 2014 08:48 Go to previous messageGo to next message
Eclipse UserFriend
this is a regression see
https://bugs.eclipse.org/bugs/show_bug.cgi?id=438736

Tom

On 09.07.14 14:43, Pierre GAUTIER wrote:
> Hello,
>
>
> I'm working on a pure e4 application, that basically only contains an
> Application.e4xmi and defines a LifeCycleHandler with corresponding life
> cycle annotations.
>
> I need the product highly modular therefore I rely on the E4 extension
> parsing to load modules.
>
> Each module starts, registers and do things through its
> x.y.z.ModuleNameAddon defined within a fragment.e4xmi, eventually with
> other model things (perspectives, parts, etc.).
>
> With Eclipse 4.3, addons were executed respecting the order of required
> plugins : if a plugin A required a plugin B, the BAddon was executed
> before AAddon.
>
> In Eclipse 4.4 it seems this order isn't respected anymore which causes
> me many problems. Was it done on purpose or is it a regression ?
>
> The problem may have been introduced when refactoring
> ModelAssembler.topoSort() to ExtensionsSort().sort()
>
>
> I remain at your disposal for any further information.
>
>
> Regards,
>
> Pierre GAUTIER
Re: Addons execution order changed in Eclipse 4.4 [message #1397255 is a reply to message #1397250] Wed, 09 July 2014 08:57 Go to previous messageGo to next message
Eclipse UserFriend

Oh well, thanks for your quick answer.
Re: Addons execution order changed in Eclipse 4.4 [message #1397271 is a reply to message #1397255] Wed, 09 July 2014 09:29 Go to previous message
Eclipse UserFriend
Sorry Pierre.

I thought we had code that would loop through fragments with still-unresolved imports until it reached a fixpoint, such that this topological sort was intended to be an optimization.

Brian.
Previous Topic:Setting Custom Context Variables In A Part's Context Before Part Creation
Next Topic:Updating command contributions on handler switch
Goto Forum:
  


Current Time: Wed Jul 23 14:43:24 EDT 2025

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

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

Back to the top