Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: anopres on February 15, 2005, 09:52:27 am
-
If you add a language to EA, how do you get it to use the proper file extensions during code generation?
-
Officially you can't... :'(
Unofficially you can import an MDG technology file that looks a bit like this.
<MDG.Technology version="1.0">
<Documentation id="YourLanguage" name="YourLanguage" version="1" notes="Sets the default extension for your language"/>
<CodeModules>
<CodeModule language="YourLanguage" notes="">
<CodeOptions>
<CodeOption name="DefaultExtention">.extension</CodeOption>
</CodeOptions>
</CodeModule>
</CodeModules>
</MDG.Technology>
You could also use the technology wizard to create a file containing all the datatypes and code templates to include this in. Then you will have a complete distribution file for your new language.
Simon
EDIT: The version can't be an empty string.
-
Thanks Simon,
This works great! ;D
-
I just posted a link to my MDG file for ColdFusion on my blog @ http://mrmx.blogspot.com/2005/03/cfc-generator-for-enterprise-architect.html
Please let me know if there is more that I can do to it.
I'm eagerly looking forward to looking into the reverse engineering possibilities in a future version of EA.
-
I just had a brief look at it. I don't know ColdFusion, but it looks pretty good.
You could also consider putting it on the EA User Group website. (May want to see if a new category for MDG Technologies can be added)
http://www.eausergroup.org/
Simon
-
:o I've been using this thing all day and it's great. I just generated about 1200 lines of code in about 20 seconds. This would have taken a couple of days normally.
Of course I still have to fish though it all and flesh it out, but the tedium is gone.
Is anybody working on one of these for Actionscript yet?
-
I think adding ColdFusion as a language type would be awsome. I don't think there is any product that can round-trip ColdFusion Components.
-
Maybe that's why it hasn't been done - because it's literally awesome ...?
-
Dear All,
I made a tool that should convert your Enterprise Architect generated XMI files to actionscript files (classes generating the namespace structure folders as well).
This will convert your UML to actionscript 2.0 classes.
find its features below
http://osflash.org/doku.php?id=xmi2actionscript