-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show number of differences in the Compare editor #504
Comments
On the top of the compare editor, just above the text viewer, I see "Text Compare". I imagine the amount of difference could be prompted here: "Text compare: 12 different blocks, 123 lines". However, I suspect this would be per "compare" starategy (ie how you count differences in Text Compare is not how you'd count difference in some Java compare where one would care about eg "1 field with different name, 1 method returning different type...." and this kind of AST-oriented information. |
@mickaelistria, thanks for the suggestions. So what about displaying just the number of differences (or "different blocks", as you suggest) for the beginning? I guess this could work regardless of concrete compare strategy (e.g. Java Structure Compare) - the number of differences only for the currently displayed "structured block" would be displayed as illustrated on this picture: |
Yes, just mentioning "differences" and let the compare strategy decide of what it calls a difference (ie a block of text, an AST element...) would probably be best. |
Yes, and I think it would be ideal if the number displayed would simply match the number of "change markers" next to the scrollbar. |
2023-09-11_16h50_14.mp4Refer the attached video for this enhancement which shows the differences in compare editor. Let me know if this is fine to go ahead with PR? |
This proposal seems good to me. |
Yes please. |
Show number of differences (Ex: 6 Differences) in the toolbar of compare editor which matches "Change markers" next to the scroll bar in compare editor Fixes eclipse-platform#504
Show number of differences (Ex: 6 Differences) in the toolbar of compare editor which matches "Change markers" next to the scroll bar in compare editor Fixes eclipse-platform#504
Show number of differences (Ex: 6 Differences) in the toolbar of compare editor which matches "Change markers" next to the scroll bar in compare editor Fixes eclipse-platform#504
Show number of differences (Ex: 6 Differences) in the toolbar of compare editor which matches "Change markers" next to the scroll bar in compare editor Fixes eclipse-platform#504
Fixed Issues identified during review : 1. The label is not recomputed if the diff config changes (Ignore White Space). 2. The label is incorrect for zero changes - it says 0 Difference 3. Test case failure Fixes eclipse-platform#504
Show number of differences (Ex: 6 Differences) in the toolbar of compare editor which matches "Change markers" next to the scroll bar in compare editor Fixes eclipse-platform#504
Fixed Issues identified during review : 1. The label is not recomputed if the diff config changes (Ignore White Space). 2. The label is incorrect for zero changes - it says 0 Difference 3. Test case failure Fixes eclipse-platform#504
Show number of differences (Ex: 6 Differences) in the toolbar of compare editor which matches "Change markers" next to the scroll bar in compare editor Fixes eclipse-platform#504
Show number of differences (Ex: 6 Differences) in the toolbar of compare editor which matches "Change markers" next to the scroll bar in compare editor Fixes eclipse-platform#504 Show number of differences in the Compare editor eclipse-platform#504 Fixed Issues identified during review : 1. The label is not recomputed if the diff config changes (Ignore White Space). 2. The label is incorrect for zero changes - it says 0 Difference 3. Test case failure Fixes eclipse-platform#504
Show number of differences (Ex: 6 Differences) in the toolbar of compare editor which matches "Change markers" next to the scroll bar in compare editor Fixes eclipse-platform#504 Show number of differences in the Compare editor eclipse-platform#504 Fixed Issues identified during review : 1. The label is not recomputed if the diff config changes (Ignore White Space). 2. The label is incorrect for zero changes - it says 0 Difference 3. Test case failure Fixes eclipse-platform#504 Conflicts resolution
Show number of differences (Ex: 6 Differences) in the toolbar of compare editor which matches "Change markers" next to the scroll bar in compare editor Fixes eclipse-platform#504 Show number of differences in the Compare editor eclipse-platform#504 Fixed Issues identified during review : 1. The label is not recomputed if the diff config changes (Ignore White Space). 2. The label is incorrect for zero changes - it says 0 Difference 3. Test case failure Fixes eclipse-platform#504 Conflicts resolution
Show number of differences (Ex: 6 Differences) in the toolbar of compare editor which matches "Change markers" next to the scroll bar in compare editor Fixes eclipse-platform#504 Show number of differences in the Compare editor eclipse-platform#504 Fixed Issues identified during review : 1. The label is not recomputed if the diff config changes (Ignore White Space). 2. The label is incorrect for zero changes - it says 0 Difference 3. Test case failure Fixes eclipse-platform#504 Conflicts resolution
Show number of differences (Ex: 6 Differences) in the toolbar of compare editor which matches "Change markers" next to the scroll bar in compare editor Fixes eclipse-platform#504 Show number of differences in the Compare editor eclipse-platform#504 Fixed Issues identified during review : 1. The label is not recomputed if the diff config changes (Ignore White Space). 2. The label is incorrect for zero changes - it says 0 Difference 3. Test case failure Fixes eclipse-platform#504 Conflicts resolution
Show number of differences (Ex: 6 Differences) in the toolbar of compare editor which matches "Change markers" next to the scroll bar in compare editor Fixes eclipse-platform#504 Show number of differences in the Compare editor eclipse-platform#504 Fixed Issues identified during review : 1. The label is not recomputed if the diff config changes (Ignore White Space). 2. The label is incorrect for zero changes - it says 0 Difference 3. Test case failure Fixes eclipse-platform#504 Conflicts resolution
Show number of differences (Ex: 6 Differences) in the toolbar of compare editor which matches "Change markers" next to the scroll bar in compare editor Fixes eclipse-platform#504 Show number of differences in the Compare editor eclipse-platform#504 Fixed Issues identified during review : 1. The label is not recomputed if the diff config changes (Ignore White Space). 2. The label is incorrect for zero changes - it says 0 Difference 3. Test case failure Fixes eclipse-platform#504 Conflicts resolution
Show number of differences (Ex: 6 Differences) in the toolbar of compare editor which matches "Change markers" next to the scroll bar in compare editor Fixes eclipse-platform#504 Show number of differences in the Compare editor eclipse-platform#504 Fixed Issues identified during review : 1. The label is not recomputed if the diff config changes (Ignore White Space). 2. The label is incorrect for zero changes - it says 0 Difference 3. Test case failure Fixes eclipse-platform#504 Conflicts resolution
Show number of differences (Ex: 6 Differences) in the toolbar of compare editor which matches "Change markers" next to the scroll bar in compare editor Fixes eclipse-platform#504 Show number of differences in the Compare editor eclipse-platform#504 Fixed Issues identified during review : 1. The label is not recomputed if the diff config changes (Ignore White Space). 2. The label is incorrect for zero changes - it says 0 Difference 3. Test case failure Fixes eclipse-platform#504 Conflicts resolution
Review points incorporated Fixes eclipse-platform#504
Review points incorporated Fixes eclipse-platform#504
Review points incorporated Fixes #504
@lathapatil : could you please add N&N entry for the change in compare editor? |
The new test fails on SDK build
I will push a fix. |
Thanks for the quick fix.. |
Review points incorporated Fixes eclipse-platform#504
Anyone who have ever tried to count all the change markers of the Compare editor for a large file, will probably say it might be quite a lengthy procedure.
So it would be pretty handy to have the number of differences explicitly displayed when comparing files in the Compare editor. IntelliJ IDEA has got this for years already - see for example their screenshot at https://www.jetbrains.com/help/idea/comparing-files-and-folders.html#comparing_files.
It is probably for a discussion where exactly to place that
# difference(s)
label. Some Compare editor related data are already displayed down in the workbench status bar, but this is quite far from where users will typically be looking at?The text was updated successfully, but these errors were encountered: