Community
Participate
Working Groups
Build Identifier: Version: 3.6.1 Build id: M20100909-0800 In the method ProjectionViewer.handleVerifyEvent(VerifyEvent) It is possible for the super.handleVerifyEvent to be invoked twice. This can result in two customizeDocumentCommand sessions, which in turn can result in double insertions into a projection viewer when there are AutoEditStrategies that act on the forwarded DocumentCommand. In my editor, i have an AutoEditStrategy that customizes the DocumentCommand in order to customize the text that is inserted into the editor when the user types. This behavior is causing duplicating effects in the editor when in Block Selection Mode, for example, the user presses the letter 'd' and two 'dd' is inserted into the editor. Reproducible: Always Steps to Reproduce: 1. Create an editor with an AutoEditStrategy 2. Have that strategy invoke the addCommand() method on the document command to add an additional text insert/deletion 3. Set the doit flag to the original DocumentCommand to false 4. You will then see duplicate insertions when the user types a key in the editor when they are in block selection mode
Fixed in master: 53acc00120134b42b3d43456552c500c757ac621
Verified in 3.8-I20111025-1800 through code inspection.
Created Bug 363194 for backport to Eclipse 3.6.2
*** Bug 363194 has been marked as a duplicate of this bug. ***
Fixed in R3_6_maintenance: 80740f3f67927d8e2b8506ebc1e2f0504feb40eb Fixed in R3_7_maintenance: 382d4127323d0b2621a3336b3122a60194a7f372