Bug 5877 Rename package -> selection incorrect
1. select text in a .java file 2. rename the package of that file using the rename menu option 3. notice that the selection has moved Perhaps because selection index isn't updated when the .java file text changes to reflect the new package.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitEditor.java
private JavaEditorErrorTickUpdater fJavaEditorErrorTickUpdater;
	
	private PaintManager fPaintManager;
	
	private BracketPainter fBracketPainter;
	
	private LinePainter fLinePainter;
	
	private PrintMarginPainter fPrintMarginPainter;
	
	private ProblemPainter fProblemPainter;
	
	private TabConverter fTabConverter;
	
	private SelectionHistory fSelectionHistory;
	
	private IPropertyChangeListener fPropertyChangeListener= new PropertyChangeListener();
	
	
	private GenerateActionGroup fGenerateActionGroup;
	private CompositeActionGroup fContextMenuGroup;
	
	/**
	 * Creates a new compilation unit editor.
	 */
	public CompilationUnitEditor() {
		super();
		setDocumentProvider(JavaPlugin.getDefault().getCompilationUnitDocumentProvider());
		setEditorContextMenuId("#CompilationUnitEditorContext");