[516363] Tweak model change triggers priority to get validation Make sure the LiveValidation trigger is executed after all the others which are modifying the models but *BEFORE* Sirius's refresh by using negative priorities Bug: 516363 Change-Id: Idd2c7bd8a229c164f31d2ecce5837708d9395d5e
diff --git a/org.eclipse.emf.ecoretools.design/src/org/eclipse/emf/ecoretools/design/service/GenModelAutoReload.java b/org.eclipse.emf.ecoretools.design/src/org/eclipse/emf/ecoretools/design/service/GenModelAutoReload.java index 56fdf07..3860b05 100644 --- a/org.eclipse.emf.ecoretools.design/src/org/eclipse/emf/ecoretools/design/service/GenModelAutoReload.java +++ b/org.eclipse.emf.ecoretools.design/src/org/eclipse/emf/ecoretools/design/service/GenModelAutoReload.java
@@ -85,7 +85,7 @@ public static final NotificationFilter SHOULD_RELOAD = IS_TOUCH.negated().and(IS_ECORE.and(IS_ATTACHMENT)); - public static final int PRIORITY = 0; + public static final int PRIORITY = -2; public Option<Command> localChangesAboutToCommit(Collection<Notification> notifications) { final Collection<GenModel> genModels = Lists.newArrayList();