Hi Darron, first of all thanks for your great tool.
So, this is the first step in round trip engineering. At least we have code generation. To go from code to class diagram would involve parsing a directory tree into the same Java classes (Class, Operation, etc), and then going from that to XMI. However, that may be a difficult road to go down (generating XMI isn't trivial).
I just started to get into Java, espacially Eclipse Plugin Development. As far as i know JDT uses a Java Model which is aware of all Packages, Classes, Operations etc. Therfore the Outline View, the Folding capability and some other Editor Features will be informed by the model when saving your Java Document. Altough i have not read the ASDT source code i am sure they have extended some kind of SourceModel to implement the Actionscript source handling. Wouldn't it be an approach to use this Model to create your XMI Model or even an EMF Model? See org.asdt.core.dom especially the ASParser.java class. Some of the ASDT programmers might help on using their parser to create xmi out of source. As i know Peter Schreiber would be the one to ask.
The Eclipse Modeling Framework is the "next generation" of XMI. XMI appears to be somewhat of an old specification, and all of the documentation I've found has said its matured into the Eclipse Modeling Framework. I could be wrong here, just going by what I remember reading a long time. I haven't done any research with that, but figuring out what the model is, how to get it, etc, is probably the way to go for Eclipse integration / round trip engineering (more so than using NSUML). For the time being though, this code gen should prove useful to other people as well - it's been pretty useful to me so far.
In my opinion EMF will rock. In combination with GEF it should be easy to create graphical representations out of an EMF Model but as i said before i am new to java and eclipse development.
regards Markus Cecot _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
