Community
Participate
Working Groups
Currently, the files which were open at the last shutdown of eclipse are reopened upon startup. Additionally, the following features would be useful: - The cursor position of the current active file in the editor is at the same position as it was at shutdown - Comparison windows which were open at shutdown are reopened
Yes, the missing cursor positions annoy me too :-( Actually, the navigation history is saved, so one can easily go to the places, last visited in the editors: Just press ALT-LEFT ALT-RIGHT to reach the last edit position or ALT-LEFT multiple times (without ALT-RIGHT) for the edit positions before that. An incomplete (though IMHO already quite helpful) solution would be, to at least restore the last edit position be quering the navigation history on startup, which could be (untested!) accomplished by patching org.eclipse.ui.internal.WorkbenchPage#restoreState(IMemento memento,IPerspectiveDescriptor activeDescritor): childMem = memento.getChild(IWorkbenchConstants.TAG_NAVIGATION_HISTORY); - if(childMem != null) + if(childMem != null) { navigationHistory.restoreState(childMem); + if (navigationHistory.getCurrentLocation() != null) { + navigationHistory.getCurrentLocation().restoreLocation(); + } + } else if(getActiveEditor() != null) navigationHistory.markEditor(getActiveEditor());
This bug overlaps with bug 44295. I don't know bugzilla well enough, whether this should result in a 'mark duplicate', 'depends on' or something else. Since that other bug is more focused (which I think is better), I will add further comments to the problem there.
*** This bug has been marked as a duplicate of 44295 ***