Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornsandonato2010-10-29 18:51:20 +0000
committernsandonato2010-10-29 18:51:20 +0000
commit0a2eae98461e80ce4f39c54a5b23d3256b20d44a (patch)
treef92ef331175c0883b4539acd6f91bf5a24cac67d /bundles/org.eclipse.wst.css.ui
parente3f46e30d5f8592d5f2ab349a4336fcc39a811bc (diff)
downloadwebtools.sourceediting-0a2eae98461e80ce4f39c54a5b23d3256b20d44a.tar.gz
webtools.sourceediting-0a2eae98461e80ce4f39c54a5b23d3256b20d44a.tar.xz
webtools.sourceediting-0a2eae98461e80ce4f39c54a5b23d3256b20d44a.zip
[271383] [misc] Foreground and background color selectors indistinguishable by screen reader
Diffstat (limited to 'bundles/org.eclipse.wst.css.ui')
-rw-r--r--bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/preferences/ui/CSSSyntaxColoringPage.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/preferences/ui/CSSSyntaxColoringPage.java b/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/preferences/ui/CSSSyntaxColoringPage.java
index c84099536b..f6d4d0a9d7 100644
--- a/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/preferences/ui/CSSSyntaxColoringPage.java
+++ b/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/preferences/ui/CSSSyntaxColoringPage.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2009 IBM Corporation and others.
+ * Copyright (c) 2007, 2010 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -271,6 +271,11 @@ public final class CSSSyntaxColoringPage extends PreferencePage implements IWork
GridData gd = new GridData(SWT.BEGINNING, SWT.FILL, false, false);
fForegroundColor.setLayoutData(gd);
fForegroundColorEditor.setEnabled(false);
+ fForegroundColorEditor.getButton().getAccessible().addAccessibleListener(new AccessibleAdapter() {
+ public void getName (final AccessibleEvent e) {
+ e.result = SSEUIMessages.Foreground_Color_Selector_Button;
+ }
+ });
fBackgroundLabel = createLabel(editControls, SSEUIMessages.Background_UI_);
((GridData) fBackgroundLabel.getLayoutData()).verticalAlignment = SWT.CENTER;
@@ -281,6 +286,11 @@ public final class CSSSyntaxColoringPage extends PreferencePage implements IWork
gd = new GridData(SWT.BEGINNING, SWT.FILL, false, false);
fBackgroundColor.setLayoutData(gd);
fBackgroundColorEditor.setEnabled(false);
+ fBackgroundColorEditor.getButton().getAccessible().addAccessibleListener(new AccessibleAdapter() {
+ public void getName (final AccessibleEvent e) {
+ e.result = SSEUIMessages.Background_Color_Selector_Button;
+ }
+ });
fBold = createCheckbox(editControls, CSSUIMessages.SyntaxColoringPage_3);
fBold.setEnabled(false);

Back to the top