Community
Participate
Working Groups
Build Identifier: Eclipse 3.7.0, CDT 8.0 When any element is selected in the Outline View and Link with editor is enabled the cursor in the editor will jump to the selected element. Unfortunately, this event is not send to the Backward History (Alt+Left arrow). Reproducible: Always Steps to Reproduce: 1. Open Outline View 2. Enable Link with Editor 3. Select element X in the Outline View 4. Select another element in the Outline View 5. click Backward History in main toolbar or press Alt+Left arrow => you would expect to get back to element X
Created attachment 193300 [details] When an element is selected in Outline View fill Backward History
Created attachment 193305 [details] Fill backward history when Quick outline is used
Created attachment 193328 [details] Committed fix Good point and thanks for the patches. However, I have taken a different approach. The central method for triggering selection changes is CEditor.setSelection(ISourceRange, boolean), therefore I fixed that method to mark the new selection in the navigation history. This is also in alignment with the Java editor. The patch fixes the same issue for the Makefile and Assembly editors as well.
Fixed in HEAD.
*** cdt cvs genie on behalf of aleherbau *** Bug 342898 - Outline View does not fill backward history [*] AsmTextEditor.java 1.26 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/asm/AsmTextEditor.java?root=Tools_Project&r1=1.25&r2=1.26 [*] CEditor.java 1.224 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CEditor.java?root=Tools_Project&r1=1.223&r2=1.224 [*] MakefileEditor.java 1.33 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/editor/MakefileEditor.java?root=Tools_Project&r1=1.32&r2=1.33
(In reply to comment #3) > Good point and thanks for the patches. > However, I have taken a different approach. The central method for triggering > selection changes is CEditor.setSelection(ISourceRange, boolean) You're right. I started first fixing only the Outline View and then Quickline Outline. Later (after submitting the patches) I realized that it could be fixed at one place in CEditor. Thanks for your quick reply and fix.