| Summary: | Outline View does not fill backward history | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Axel Mueller <aegges> | ||||||||
| Component: | cdt-editor | Assignee: | Anton Leherbauer <aleherb+eclipse> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | Anton Leherbauer <aleherb+eclipse> | ||||||||
| Severity: | enhancement | ||||||||||
| Priority: | P3 | CC: | cdtdoug, yevshif | ||||||||
| Version: | 8.0 | ||||||||||
| Target Milestone: | 8.0 | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | All | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Axel Mueller
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. |