The statechart editor allows for comparing two or even three statecharts to each other, displaying the results, and possibly merging selected differences. Figure
"Comparing two statecharts" shows a sample comparison result.
Comparing two statecharts
Whenever a statechart is saved to its statechart file, the previous version of the file is saved to the local history.
Warning: The local history typically contains a few recent versions of a file. However, you should never rely on anything being available in the local history at all. It is definitely no replacement for a data backup or a version control system
To compare a statechart to an older version in the local history, proceed as follows:
- In the
project view, right-click on a statechart model file. The context menu opens.
- In the context menu, select
Compare With → Local History….
- In the local history, double-click on the file’s version to compare to.
- The comparison results are shown.
To compare two statecharts, proceed as follows:
- In the
project view, select two statechart model files.
- Right-click on one of the selected statechart model files. The context menu opens.
- In the context menu, select
Compare With → Each Other.
- The comparison results are shown.
To compare three statecharts, proceed as follows:
- In the
project view, select three statechart model files.
- Right-click on one of the selected statechart model files. The context menu opens.
- In the context menu, select
Compare With → Each Other.
- The
Select common ancestor dialog appears. It shows the three selected statechart model files.
- Select one of them. It will be regarded as the common ancestor of the two others.
- The comparison results are shown.