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

Bug 314996

Summary: By reformatting or comment a text in eclipse, Orca speaks all the file contents
Product: [Eclipse Project] Platform Reporter: jose vilmar estacio de souza <vilmar>
Component: SWTAssignee: Silenio Quarti <Silenio_Quarti>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: carolynmacleod4, ericwill, joanmarie.diggs, remy.suen
Version: 4.0Keywords: accessibility
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description jose vilmar estacio de souza CLA 2010-05-30 02:35:51 EDT
Build Identifier: I20100527-1700

When I press ctrl+shift+f or ctrl+/ to comment or reformat a text in eclipse,
orca reads all the content of the file.

This is because orca gets an object:text-changed:insert containing the entire
content of the file and tries to speak it.

We could avoid this behavior checking if ctrl+/ or ctrl+shift+f wer pressed but they can be remapped by user.

There is a suggestion pointed by Joanmarie Diggs <joanmarie.diggs@gmail.com>:

There's nothing preventing them from qualifying text changed events. Gecko does
this, and it comes in handy. Capture a debug.out from Thunderbird when you
reply to a message. The object:text-changed:insert event associated with the
addition of the quoted message is actually an object:text-changed:insert:system
event. The 'system' tells us that the app -- and not the user -- caused the
text to get inserted.

Examples:
* You typed text: no system
* You pasted text: no system
* You replied to a message and the quoted message was added: system
* A live region added text to the web page: system

The sorts of places I'd like to see text-changed events be qualified with
'system' include:

* bullets and numbers auto-inserted by OOo Writer into your document
* autocompleted/suggested text inserted by Writer into your document
* this particular case -- and any similar cases in Eclipse

Note that if this change is made by the Eclipse developers, it would not break
anything for us. Back when the Gecko guys did this (a couple of years ago I
think), we went back and changed every single blessed instance in Orca of

    event.type == "foo:bar"

to

    event.type.startswith("foo:bar")

Since you are much more in contact with the Eclipse team than I, would you mind
asking Silenio for his opinion on this? If he's willing to do it a) Thank him
profusely for me and b) Check out this patch I created for Thunderbird [1]. I
suspect you'd be able to do something very similar.


Reproducible: Always

Steps to Reproduce:
1. With orca active launch eclipse and choose a class file to edit
2. Press ctrl+/ or press ctrl+shift+f

Orca will read the entire class, unless you press the ctrl key to stop.
Comment 1 Eric Williams CLA 2017-11-29 13:22:18 EST
I cannot reproduce this issue in Photon M3, GTK3.22, and Fedora 27. Please feel free to re-open this bug if the issue re-occurs.