Bug 42199 Select Next/Previous Word is broken when navigating over sequence of upper-case letters
I20030827: When positioning the caret to the right of sequences with pattern a* A+ a*, where A+ consists of more than two upper-case letters, the caret is moved to the beginning instead in front of the first A when using Ctrl+Arrow_Left.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/JavaEditor.java
}
			
			StyleRange oldStyleRange= text.getStyleRangeAtOffset(offset);
			Color foregroundColor= fColor;
			Color backgroundColor= oldStyleRange == null ? text.getBackground() : oldStyleRange.background;
			int fontStyle= oldStyleRange== null ? SWT.NORMAL : oldStyleRange.fontStyle;
			StyleRange styleRange= new StyleRange(offset, length, foregroundColor, backgroundColor, fontStyle);
			text.setStyleRange(styleRange);
			
			text.redrawRange(offset, length, true);
			fActiveRegion= region;
		}
		private void activateCursor(ISourceViewer viewer) {
			StyledText text= viewer.getTextWidget();
			if (text == null || text.isDisposed())
				return;
			Display display= text.getDisplay();
			if (fCursor == null)
				fCursor= new Cursor(display, SWT.CURSOR_HAND);
			text.setCursor(fCursor);
		}
		
		private void resetCursor(ISourceViewer viewer) {
			StyledText text= viewer.getTextWidget();
			if (text != null && !text.isDisposed())
				text.setCursor(null);
						
			if (fCursor != null) {
				fCursor.dispose();
				fCursor= null;