Re: Comparing two models for differences
Brian Smith <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.mdr.devel |
|---|---|
| Message-ID | <[email protected]> |
Martin Matula wrote: > Hi Brian, > problem with ordering is that for some collections MDR uses HashSet to > optimize for performance. Ordering the output for each operation would > be counterproductive. One solution to this problem could be to implement > ordering outside of MDR in XMI writer. This way the writer will preserve > ordering with any JMI service (not only with MDR). Yes, this is true. And, presumably the infrastructure for doing this would be reusable by other tools such as mine. > For some usecases it could be also better to use "metamodel-based diff", > which is a utility that operates on MDR directly rather than on XMI > files and compares two different datastructures using their metamodel. > One of my students developed such a module for NetBeans as part of his > master thesis. Hopefuly he will contribute it soon. That would definitely be a cleaner solution since it would not rely on a implementation-specific behavior. Is his thesis available somewhere? Thanks, Brian