Bug 506093

Summary: Provide mechanism to specify visuals that should not be part of tool event processing.
Product: [Tools] GEF Reporter: Matthias Wienand <matthias.wienand>
Component: GEF MVCAssignee: gef-inbox <gef-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 1.0.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Matthias Wienand CLA 2016-10-17 10:50:06 EDT
Currently, the ITargetPolicyResolver needs to be exchanged in order to disable the processing of events for particular visuals, for example, controls that are not implemented as visual parts. As this is a common use case, the DefaultTargetPolicyResolver should provide a means to specify such visuals. When determining the target policies, the visual hierarchy of the target visual is traversed up to the root visual until a registered visual is found (within the visual-part-map). At this point, a set could be used to check if an "external" visual can be found within the hierarchy. The traversal would then stop at any registered or external visual, and event processing would only be performed for registered visuals.