Bug 39600 [misc] Java editor does not read lines in JAWS 4.5
3.0 M1 There has been a change in the Java editor since version 2.1.1 that now confuses the JAWS screen reader. It no longer gives the contents of each line but now says "begin" only. STEPS 1) Start JAWS 4.5 2) Open a Java Editor 3) Use the arrow keys to read each line In version 2.1.1 this works fine but not in 3.0 M1. Please note that Ialso tried this with the Window Eyes screen reader and it had no problem so I suspect it is related to the screen scraping algorithm JAWS uses.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
if (offset + segment.getLength() >= line.getLength())
				break;
				
			segments[j++]= offset + segment.getLength();
		}
		
		if (j < segments.length) {
			int[] result= new int[j];
			System.arraycopy(segments, 0, result, 0, j);
			segments= result;
		}
		
		return segments;
	}
		
	/**
	 * Returns a segmentation of the given line appropriate for bidi rendering. The default
	 * implementation returns only the string literals of a java code line as segments.
	 * 
	 * @param widgetLineOffset the offset of the line
	 * @param line the content of the line
	 * @return the line's bidi segmentation
	 */
	protected int[] getBidiLineSegments(int widgetLineOffset, String line) {
		if (line != null && line.length() > 0) {
			ISourceViewer sourceViewer= getSourceViewer();
			if (sourceViewer != null) {
				int lineOffset;
				if (sourceViewer instanceof ITextViewerExtension5) {
					ITextViewerExtension5 extension= (ITextViewerExtension5) sourceViewer;