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
IDocument document= textViewer.getDocument();
			
			if (document == null)
				return -1;		
			try {
				int widgetLocation= styledText.getOffsetAtLocation(new Point(x, y));
				if (textViewer instanceof ITextViewerExtension5) {
					ITextViewerExtension5 extension= (ITextViewerExtension5) textViewer;
					return extension.widgetOffset2ModelOffset(widgetLocation);
				} else {
					IRegion visibleRegion= textViewer.getVisibleRegion();
					return widgetLocation + visibleRegion.getOffset();
				}
			} catch (IllegalArgumentException e) {
				return -1;	
			}
		}
	}
	/**
	 * This action implements smart home.
	 * 
	 * Instead of going to the start of a line it does the following:
	 * 
	 * - if smart home/end is enabled and the caret is after the line's first non-whitespace then the caret is moved directly before it, taking JavaDoc and multi-line comments into account.
	 * - if the caret is before the line's first non-whitespace the caret is moved to the beginning of the line
	 * - if the caret is at the beginning of the line see first case.
	 * 
	 * @since 3.0
	 */
	protected class SmartLineStartAction extends LineStartAction {