APSIMInitiative / ApsimX

ApsimX is the next generation of APSIM
http://www.apsim.info
Other
131 stars 160 forks source link

Difference view Manager scripts #8139

Open her123 opened 1 year ago

her123 commented 1 year ago

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:

  1. right click a Manager component and choose Copy (to clipboard)
  2. On any other Manager, right click and choose 'View difference'

Suggested like image below: image

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.

peter-devoil commented 1 year ago

Supporting JSON would be invaluable in PMF models