From 57c13ce3962c12cfb80c1deff10334aea0d67213 Mon Sep 17 00:00:00 2001 From: Carolyn MacLeod Date: Wed, 24 Mar 2010 15:24:00 +0000 Subject: accessibility state needs both single and multi --- .../common/org/eclipse/swt/custom/StyledText.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- cgit