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

Bug 499440

Summary: Interaction policies should provide initialization and clean-up.
Product: [Tools] GEF Reporter: Matthias Wienand <matthias.wienand>
Component: GEF MVCAssignee: gef-inbox <gef-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: nyssen
Version: 1.0.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Matthias Wienand CLA 2016-08-09 08:27:43 EDT
Most of the interaction policies define one callback for the start of the interaction, and two callbacks for the end of the interaction (e.g. abort and release). If it is possible for multiple callbacks to start/end the interaction, then code for initialization/clean-up has to be executed in all of these callbacks. Moreover, coupling initialization/clean-up and interaction callbacks reduces the extensibility of the code. Therefore, the interaction policies should provide callbacks for initialization and clean-up that can be called automatically by the tools prior to interaction and after interaction, regardless of the input event start starts/ends the interaction.
Comment 1 Alexander Nyßen CLA 2016-09-23 09:16:09 EDT
As different gestures could need different information for their initialization or finalization, I do not thing a generalization makes sense here, while we should have such a mechanism per gesture (i.e. as a contract between tool and interaction policy). Resolving this as WONTFIX though.