Bug 506093 - Provide mechanism to specify visuals that should not be part of tool event processing.
Summary: Provide mechanism to specify visuals that should not be part of tool event pr...
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF MVC (show other bugs)
Version: 1.0.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-17 10:50 EDT by Matthias Wienand CLA
Modified: 2016-10-17 10:50 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.