Opening the Detailed Comparison View
Requirement: For example, a user modified the code in a POU of the current project. You have performed the project comparison by clicking
. The project comparison view shows this POU highlighted in red in the aligned in the project trees of the current project and reference project.Double-click the line of the aligned POU versions.
The comparison view switches to the detailed comparison view of the POU. The modified code lines are highlighted in gray and written in red.
Click
.
Code lines with changes (red) are extended by two lines: an line with insert (left, green) and a line with delete (right, blue).
Click
again.
The code line is marked again as modified.
Move the mouse pointer to the code line marked as modified and click
Accept Single.
The code line from the reference project is activated for acceptance into the current project.
If available, click
to add a third view.
A third view appears below the two views which contrast the code of the current object and the reference object. This shows the result of the actions you perform to resolve the differences between the current and reference objects. For these actions, additional buttons are available in the taskbar of the detailed comparison view. For more information, see: View: Project Comparison – <object name> Differences.
Click
.
The project comparison view opens for the entire project. It is write-protected (read-only) to prevent you from activating differences for acceptance. The link highlighted in yellow above the tree view also indicates this.
Click the link: Project comparison view is read-only because there are uncommitted changes in another view. Click here to switch to the modified view.
The detailed comparison view opens again. The unconfirmed changes are highlighted in yellow.
Click
on the tab of the view and confirm that the changes should be saved.
The detail project view is closed and the POU is overwritten. Now it corresponds to the POU of the reference project. The project view is active again so that you can continue working with project comparison.
Tip
If you do not click the link (Step 7), but click instead to close the editor of the project comparison view, then you will also confirm the acceptance of changes into the current project. The detail changes are accepted and then the project comparison is closed completely.
For more information, see: Creating Comparison Views