> Arguably the API should have been designed differently, but that's > before my time and ancient history by now. Using wrapper objects > might have been considered too heavyweight, but I bet something fancy > could have been done with reflection or byte code manipulation to > inject a org.argouml.uml.core.ModelElement interface and set of > wrapper methods. This would have had all kinds of benefits including > better type safety, a more friendly programming experience, etc, etc, > but it's probably not worth the effort at this point.
I think Linus intent with the model interface and use of Object was that it would be a transition from the old NSUML metamodel to MDR. It allowed both repositories to be used during the transition and I think the intent was then to later replace use of Object with the MDR types. Unfortunately though MDR hasn't lived up to what we hoped and we have yet another transition in progress. What was meant to be temporary has remained permanent. I was hoping we would eventually wrap these model elements but I'm starting to think it may be easier to just wait until we are more tightly integrated with eclipse and then move to using the eclipse UML2 classes directly. If we later need to move on again we can design a better interface (wrappers??) from first principles with the lessons learned from our previous attempt. Bob. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
