Project: SWT
Bug 384886 [Bidi] Text#addSegmentListener(..) should not require client to call setText(..)
Reported: 2012-07-11 20:05:52 | Status: resolved fixed

Text#addSegmentListener(..) should not require the client to call setText(..). This is confusing and it's also not necessary in the equivalent API on StyledText. Furthermore, setText(..) is not the only way to trigger the segment listener. If the programmer didn't account for this bug, then the segment listener may also be called for the first time as a response to user input that goes into the Text widget.

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/StyledText.java bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java