JFace DecorationField and JASW issue!!!! Follow up [message #487120] |
Tue, 22 September 2009 02:43 |
Chen Yang Messages: 1 Registered: September 2009 |
Junior Member |
|
|
Hi All :
I have faced a JFace and JASW issue.
The scenario is that FieldedDecoration can not be read by screen reader(JASW)
Please see my testing code following :
int styles = SWT.BORDER | SWT.WRAP | SWT.V_SCROLL |
SWT.H_SCROLL | SWT.MULTI;
DecoratedField field = new DecoratedField(shell, styles, new TextCreator());
Text i_fromText = (Text)field.getControl();
FieldDecoration contentAssist =getContentAssistDecoration();
field.addFieldDecoration(contentAssist, getContentAssistDecorationLocation(), false);
private static FieldDecoration getContentAssistDecoration()
{
FieldDecorationRegistry registry = FieldDecorationRegistry.getDefault();
String decorationId = FieldDecorationRegistry.DEC_CONTENT_PROPOSAL;
FieldDecoration c_contentAssistDecoration = registry.getFieldDecoration(decorationId);
c_contentAssistDecoration.setDescription("Content assist is available for this field. Type a '$' to open the content assist popup."); //$NON-NLS-1$
return c_contentAssistDecoration;
}
Please see the attachment .
|
|
|
Powered by
FUDForum. Page generated in 0.01786 seconds