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

Bug 60639

Summary: [Accessibility] Color chooser buttons don't have labels
Product: [Eclipse Project] Platform Reporter: Tanya Wolff <twolff>
Component: SWTAssignee: Carolyn MacLeod <carolynmacleod4>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: dipalerm, grant_gayed, Karice_McIntyre, keri_tuttle, Lmao, snorthov, Tod_Creasey
Version: 3.0Keywords: accessibility
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Tanya Wolff CLA 2004-04-30 16:27:52 EDT
Colors shouldn't be the only way to convey information. So each button in the 
color chooser should have an associated label with the name of the color.
The specific dialog I'm looking at is in Window->Preferences: C/C++ Editor: 
Colors tab. The color button is dark red, but MS Inspect Objects shows "none" 
for the MSAA name. If the color name can be retrieved from the color chooser, 
then can SWT supply color names to the buttons in the color chooser?
Comment 1 Grant Gayed CLA 2004-04-30 16:48:31 EDT
I don't have the C++ plugins so I can't try your steps, but I'm assuming that 
you're referring to the native color chooser dialog that can be launched from 
the Window -> Preferences -> Workbench - Colors and Fonts page (?).

If this is the dialog that you mean then we cannot do anything here because 
it's provided by the platform, so windows should be making it answer good MSAA 
information.  If this is not the dialog that you mean then can you find a 
similar example of this problem in the base eclipse product?  Please follow up, 
thanks.
Comment 2 Tanya Wolff CLA 2004-05-03 10:05:06 EDT
Yes this is the same dialog. So does this mean that although I can move around 
Basic Colors with the arrow keys, there's no way to supply the color name? MS 
Inspect only shows "Basic Colors" for any color selected.

If we can't do anything here then how about the Preference page itself? The 
button with the chosen color has only the color's graphic and no text. MS 
Inspect shows "Color Select" as the name, and JAWS' Ins+Tab feature 
reads "graphic 983 button". Can this button have a color name passed to MSAA?
Comment 3 Grant Gayed CLA 2004-05-03 11:26:02 EDT
The buttons on the preference pages could be made to read out the selected 
color name, but I don't know of a platform mechanism for translating a color to 
a name (ie.- RGB(255,0,0) is obviously "red", but what is RGB(102,11,250)?)

Bug 40407 addresses this somewhat by giving these buttons the name "Color 
Selector", which should tip off blind users that the button is probably not 
interesting to them.  You will only hear this read out if you have a very new 
JAWS though (5.00.809), as this did not previously read as a result of a JAWS 
bug that was recently fixed, see bug 21771.

So I think that this is behaving as well as it can, assuming that the user has 
the fixed JAWS.  If you have any other thoughts then please add them here, 
otherwise I'll close this report shortly.
Comment 4 Tanya Wolff CLA 2004-05-03 14:04:41 EDT
Ok then, 21771 indicated JAWS is fixed, but, my JAWS is new -- 5.00.844 and it 
says "graphics <xyz>" instead of the "Color Selector" as seen in MS Inspect 
Objects. Is there a JAWS settings to get it to read the MSAA name over the 
graphics name?
Comment 5 Carolyn MacLeod CLA 2004-05-11 12:46:37 EDT
This used to work "out of the box". But it looks like you have to tell this 
version of JAWS to use MSAA for the Button class. How annoying! Here's how:

With JAWS running and eclipse open, give focus to the Color Selector button 
(or any button) and type INS+7. This is called "Window Class Reassign".
JAWS opens a window called javaw.jcf and brings up a dialog called "Window 
Classes". The "New Class" field should be filled in with the word "Button" (if 
it isn't, just type it in). Then, in the "Assign to:" field, scroll down until 
you see "MS Active Accessiblity" and select that. Then click "Add Class" 
and "OK". Now you should hear "Color Selector" when that button has focus.

Frank, why did the JAWS folks decide to revert to not using MSAA by default 
for Buttons??!! This is terrible news!! Please tell them that they have a 
regression from version 809 to version 844, and that we are not happy.

Tod - FYI.
Comment 6 Frank DiPalermo CLA 2004-05-17 15:18:25 EDT
I tested this with 844 and found it to be true.  I will ask them when I am 
there next week.  We should be able to get JAWS to use MSAA first with 
everything in Eclipse, I hope.
Comment 7 Carolyn MacLeod CLA 2004-09-01 12:39:56 EDT
Tanya, FYI, the latest version of JAWS (5.1) has a new feature where they will 
actually guess at a color name, given the rbg. I haven't tried it, but here's 
the info from the "New Features" list on their web site (I'm not sure how the 
user selects the rgb - i.e. do they hover over it, or does it have to have 
focus somehow):

"Enhanced Color Approximation
When you press INSERT+5 on the number row, JAWS now says the name of the color 
instead of announcing the red, green, and blue (RGB) numeric values."
Comment 8 Keri Tuttle CLA 2006-03-31 12:39:57 EST
I tried the work around below with Jaws 6.1 and I am still reproducing this bug. Is there something else I need to try to get Jaws to read the colors on the color button selectors in the Preferences window? 
Our team needs this workaround or fix to pass our Accessibility Software check list. 

Any information you can provide to me would be greatly appreciated.
Comment 9 Carolyn MacLeod CLA 2006-03-31 13:06:10 EST
Which work-around did you try? The one in comment 5 or the one in comment 7?

The one in comment 5 still works for me with JAWS 6.10.1006. (Note that I am using the JDT because I do not have the CDT, and I am talking about the button that shows up when you click on any color selection tree item in Window->
Preferences...->General->Appearance->Colors and Fonts->Basic->Xx color)

As for the one in comment 7, I tried to figure out how to get JAWS to read the color name, but I'm not sure how to select the color (i.e. I don't hear the rgb OR the color name).

Anyhow, I would say that you can go with the work-around in comment 5 and pass your checklist.
Comment 10 Karice McIntyre CLA 2006-06-26 15:10:06 EDT
Carolyn, is there a bug in Eclipse here or is it a bug in JAWS?  Should this be resolved, as far as Eclipse is concerned?
Comment 11 Steve Northover CLA 2006-06-28 13:52:20 EDT
We should close this.  It's a bug in JAWS, they have been informed and there is a workaround.