Community
Participate
Working Groups
the current approach to calculate the deltas / hunks from the comparison of two files is to open the compare editor, this deteriorates performance. It shall use a differencer instead of relying on the Eclipse compare editor.
this functionality would be needed for statistics as Birt reports rely on deltas to estimate the Lines of code changes which is the input to derive other results.
THe proble happens because for now we open the compare editor in order to get he differences between the base and target files. We should use the Eclipse Differencer engine to get the differences in a separate thread without having to open the compare editor to do so. This will also solve another problem where only JDT and CDT files can be generated with Delta elements.
We now do the comparisons internally when importing change sets. Also, there are many improvements for cursor positioning and range highlighting for Contents/Anomalies when operating the compare editor. Take note that there are a few dirty hacks that were needed to implement the full functionality. This is because the current Compare Editor does not directly implement many of the Text Editor functionalities. Hopefully, this can be streamlined when/if changes are introduced in the Compare Editor in the future.