From 9f2311919c6322217b1e755122fa8e27c9b7faa3 Mon Sep 17 00:00:00 2001 From: Arthur Daussy Date: Wed, 11 Jun 2014 14:37:00 +0200 Subject: [PATCH] Correct the order of processing post processors. Sort post processors using "ordinal" attribute. Change-Id: I6547ab83e7192338754e2e7f280cd4538b95b3e7 Signed-off-by: Arthur Daussy --- .../rcp/internal/postprocessor/PostProcessorRegistryImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/org.eclipse.emf.compare.rcp/src/org/eclipse/emf/compare/rcp/internal/postprocessor/PostProcessorRegistryImpl.java b/plugins/org.eclipse.emf.compare.rcp/src/org/eclipse/emf/compare/rcp/internal/postprocessor/PostProcessorRegistryImpl.java index e6065f61f..d8b956def 100644 --- a/plugins/org.eclipse.emf.compare.rcp/src/org/eclipse/emf/compare/rcp/internal/postprocessor/PostProcessorRegistryImpl.java +++ b/plugins/org.eclipse.emf.compare.rcp/src/org/eclipse/emf/compare/rcp/internal/postprocessor/PostProcessorRegistryImpl.java @@ -85,8 +85,12 @@ public class PostProcessorRegistryImpl implements IPostProcessor.Descriptor.Regi * {@inheritDoc} */ public List getDescriptors() { + List> itemDescriptors = baseRegisty.getItemDescriptors(); + Collections.sort(itemDescriptors); + Collection> activeDescriptor = Collections2.filter( - baseRegisty.getItemDescriptors(), not(in(getDisabledEngines()))); + itemDescriptors, not(in(getDisabledEngines()))); + Collection descriptors = Collections2.transform(activeDescriptor, AbstractItemDescriptor. getItemFunction()); return Lists.newArrayList(descriptors); -- 2.11.4.GIT