eclipse.platform
eclipse.platform copied to clipboard
Incorrect navigation through changes in Compare Editor when editor is vertically split
Steps to reproduce
- Open Compare Editor for two different revisions or files. For example, open two revisions of a java file.
- Split Compare Editor vertically: Window > Editor > Toggle Split Editor (Vertical)
- Try to navigate (by double-clicking) through changes in the tree at the top of the editor ("Java Structure Compare") on the left side. Observe that corresponding changes are highlighted in Java editors in the right Compare Editor. Try navigating through changes on the right side and observe that corresponding changes are also highlighted in the right editor.
Expected: When navigating in "Structure Compare" tree and having editor split, the corresponding changes should be displayed on the same side of the split editor where the navigation is occurring.
Tested under this environment:
- Eclipse IDE/Platform version (as shown in Help > About): Version: 2024-06 (4.32)
Note: as a workaround you can set in preferences to show structure compare in the Outline view. In this case it will work with the correct (active) editor.
Beside this, unfortunately, splitting compare editor only leads to troubles, I see different errors reported in the log after split & closing the editor. The compare editor seem not be properly prepared for splitting. Actually not at all...
Contributions are welcome.