Community
Participate
Working Groups
Created attachment 210719 [details] Proposed patch Currently SpecializationTypeRegistry#getMatchingAdvice() returns advices ordered by SpecializationType & MetamodelType inheritance (or definition relations). For a given Specialization or Metamodel supertype the valid advices are added with no guaranteed order. I would have expected (for a ISpecializationType) that the advice directly associated with the SpecializationType declaration would be return before other advices that can possibly be bound to it. The advice directly associated with the SpecializationType would then be used to define "default" command contribution for the type, making possible to modify this default behavior by adding new advicebindings without modifying the advice of the SpecializationType (just assuming that its getBeforeCommand are added before any advice binding).