Community
Participate
Working Groups
While testing code for a previous enhancement I came across the following code that works for SWT but behaves incorrectly on RAP. The listener seem to be do stange things. Such as not being removed correctly. Steps to reproduce: 1. add new MultipleListenersExample().run(); to a plain implementation of IEntryPoint 2. Run and enter a number into either text box.
Created attachment 188114 [details] StrageListenerBehaviour
Are you aware of bug 327439 and bug 244008? In your snippet the modify listener is not notified at all as there is no modification - VerifyEvent event.doit is always false. I think that there is nothing wrong with the listeners and this bug is invalid.
This code was not written by me its off a SWT example website. An it DOES work on SWT. The RAP website states "We provide strict subsets of SWT, JFace and Workbench bundles. Thus, things should work just as they do in SWT and RCP" this is not true in this case, so this bug in not invalid. If you remove the verifyListener the code still does not execute correctly. You can only set the value once if my memory of the tests earlier today are correct.
From what I read in the description, the bug is about "listeners are not removed correctly". Timothy, could you be more precise with "strange behavior with listeners" and "not execute correctly". Which version of RAP are you using? What is the correct behavior that you expect? Please define the problem with exact steps to reproduce it. Thanks.
After testing again it does appear to work fine once the VerifyListeners are removed. Please forgive me for the confusion. *** This bug has been marked as a duplicate of bug 327439 ***