I have an editor that is based on JGoView for SWT. Besides the JGoDocument, it also maintains a template file that stores diagram’s information. Something like:<?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
When a node is added/removed/moved on the diagram, the template file is updated accordingly. Now the editor needs to support undo/redo. I want to keep the template file in sync after undo's and redo's. Any suggestions?