From the model tree popup menu allow a difference viewer to show the difference between Manager scripts.
Process would follow like this:
right click a Manager component and choose Copy (to clipboard)
On any other Manager, right click and choose 'View difference'
Suggested like image below:
The popup Difference menu item:
disabled or invisible if no diff viewer path set in the Preferences
disabled if the component type doesn't match what's in the clipboard
when chosen it saves the script from the clipboard and the chosen one to temporary files for the diff viewer.
There may be a way to make the selected component update from the diff view if changed.
Useful to diff view of Manager components but could be extended to other component types. For them maybe just show raw json. Then also decide if it will recurse to child json components.
Describe the new feature
From the model tree popup menu allow a difference viewer to show the difference between Manager scripts.
Process would follow like this:
Suggested like image below:![image](https://github.com/APSIMInitiative/ApsimX/assets/11879671/6033e7dc-4d36-41c1-8709-831253514df4)
The popup Difference menu item:
There may be a way to make the selected component update from the diff view if changed. Useful to diff view of Manager components but could be extended to other component types. For them maybe just show raw json. Then also decide if it will recurse to child json components.