Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 475488

Summary: Tools should stop iterating over related policies once the processed event has been consumed
Product: [Tools] GEF Reporter: Camille Letavernier <cletavernier>
Component: GEF FXAssignee: gef-inbox <gef-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: nyssen
Version: 0.1.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Camille Letavernier CLA 2015-08-20 09:21:47 EDT
From forum discussion: https://www.eclipse.org/forums/index.php/t/1069577/

Currently, FX Tools propagate events to all related policies, even if the event has been consumed by one policy. It might make sense to stop the iteration when the event is consumed.

There are several occurrences of this pattern (Pretty much in each FX Tool)

Relying on event consumption can be useful when implementing several (mutually exclusive) policies for the same tool/event
Comment 1 Alexander Nyßen CLA 2015-08-27 17:43:11 EDT
I thought this to be a reasonable approach at first (which is why I asked you to enter it as a bugzilla). Having reconsidered it in detail, I come to a different conclusion. Evaluating the consumption state of events already within the tools might restrict the policies too much. Your use case could be achieved as well by having the policies guard their executions by checking the consumption state of events, which seems to be more flexible (the default policies don't rely on this, and if policies are to be added which have to be synched like this, they can be implemented accordingly, so the tool does not need to be exchanged). Because of this, resolving this as a WONTFIX. Nevertheless, Camille, thanks for having raised that point.