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

Bug 356322

Summary: RidgetContainerAnnotationProcessor does not 'respect' overridden event processing methods (e.g. @OnSelectionChanged)
Product: [RT] Riena Reporter: Stefan Liebig <Stefan.Liebig>
Component: UIAssignee: Stefan Liebig <Stefan.Liebig>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Stefan Liebig CLA 2011-08-31 09:11:12 EDT
The RCAP processes all annotations within a ridget container and within its super classes. In this hierarchy it can be that a event method (annotated with the same annotation) may be overridden. Currently this results in multiple generated listeners for the same event. Which results in calling multiple times the same overridden event handling method. But this method should only be called once.
Comment 1 Stefan Liebig CLA 2011-09-02 03:05:21 EDT
The solution (introducing a guard) required to break the existing API of:
- IRidgetContainerAnnotationHandler
- RidgetContainerAnnotationProcessor

However, it is very unlikely that those changes affect client code.