summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets
diff options
context:
space:
mode:
authorCarolyn MacLeod <carolyn>2010-03-24 15:24:00 +0000
committerCarolyn MacLeod <carolyn>2010-03-24 15:24:00 +0000
commit57c13ce3962c12cfb80c1deff10334aea0d67213 (patch)
tree8e64fb7c01f29d557e9dc099c570bb1bcc0784a7 /bundles/org.eclipse.swt/Eclipse SWT Custom Widgets
parent70509869d0d2bed63fc32eb5577991b668d72df8 (diff)
downloadeclipse.platform.swt-57c13ce3962c12cfb80c1deff10334aea0d67213.tar.gz
eclipse.platform.swt-57c13ce3962c12cfb80c1deff10334aea0d67213.tar.xz
eclipse.platform.swt-57c13ce3962c12cfb80c1deff10334aea0d67213.zip
accessibility state needs both single and multi
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Custom Widgets')
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
index 2b2672a4d7..2da6282b41 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java
@@ -6712,7 +6712,8 @@ void initializeAccessible() {
if (isFocusControl()) state |= ACC.STATE_FOCUSED;
if (!isVisible()) state |= ACC.STATE_INVISIBLE;
if (!getEditable()) state |= ACC.STATE_READONLY;
- if ((getStyle() & SWT.SINGLE) == 0) state |= ACC.STATE_MULTILINE;
+ if (isSingleLine()) state |= ACC.STATE_SINGLELINE;
+ else state |= ACC.STATE_MULTILINE;
e.detail = state;
}
public void getValue(AccessibleControlEvent e) {