Community
Participate
Working Groups
Inner class of AbstractTextEditor, ElementStateListener, tries to restore the selection in the editor after elementContentReplaced (Revert File action). See the following method: public void elementContentReplaced(Object element) { if (element != null && element.equals(getEditorInput())) { Runnable r= new Runnable() { public void run() { enableSanityChecking(true); firePropertyChange(PROP_DIRTY); restoreSelection(); } }; execute(r); } } ==================== However, the selection after Revert File is very unpredictable. If the bottom half of file was changed, the restoreSelection may work okay. If lines were deleted from the top half of the file, the restored selection is very uppredicatable. Usually, Revert is used to start the edit session all over again (because the changes in the editor are all messed up). I think it's very reasonable to reset the curor to the beginning of the file, instead of trying restore the cursor to the last selection in the editor.
Moving Dougs bugs
As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009
Remy is now responsible for watching the [EditorMgmt] component area.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.