Login | Register
My pages Projects Community openCollabNet

Discussions > modules-dev > Code generation

argouml
Discussion topic

Back to topic list

Code generation

Author Frank Raiser <frank dot raiser at uni-ulm dot de>
Full name Frank Raiser <frank dot raiser at uni-ulm dot de>
Date 2005-07-25 16:06:38 PDT
Message Hello,

I'm trying to implement an ArgoUML module for code generation and I got
as far as getting my module to load properly and add a JMenu to the menubar.

However I'm having big troubles finding the entry point for where to tell
ArgoUML that my module can do code generation. I've seen the FileGenerator
interface and the Generator2 class which I assume my module has to work with.

But I could not find any place where I can add my class so that it is shown
in the corresponding generator dialogs next to the java and csharp entries.
I read in the cookbook that the generator handling is about to be changed and
that modules should register in org.argouml.language.Language, but from what I
can see this doesn't yet seem to be implemented.

So here's a list of my current questions:

- how do you register a code generator class?
  - is it adviceable to register it 'the old way' or is the abovementioned
    implementation coming anytime soon?
  - what amount of effort is needed to change the code from the old to the new
    way of registering the class?

- where can I find documentation on the Action* classes and how to use them?
  (f.ex. to trigger XMI exporting with ActionExportXMI)

- is there a way to to modify the .uml file for a diagram (with support from the
  ArgoUML API even?) and have the changes or the complete file displayed again?
  Or what is the preferred way to tackle round-trip engineering in ArgoUML?

I'm currently trying to investigate generating and reverse engineering Java 1.5
source code for ArgoUML and whether it might work out as a diploma thesis, so any
help and warnings on the matter are appreciated.

--
Raiser, Frank
Student @ University of Ulm (www.uni-ulm.de)

Present to inform, not to impress; if you inform, you will impress.
(Frederick P Brooks)

« Previous message in topic | 1 of 9 | Next message in topic »

Messages

Show all messages in topic

Code generation Frank Raiser <frank dot raiser at uni-ulm dot de> Frank Raiser <frank dot raiser at uni-ulm dot de> 2005-07-25 16:06:38 PDT
     Re: [argouml-modules-dev] Code generation Luis Sergio Oliveira <euluis at zmail dot pt> Luis Sergio Oliveira <euluis at zmail dot pt> 2005-07-26 15:34:17 PDT
         Re: [argouml-modules-dev] Code generation Frank Raiser <frank dot raiser at uni-ulm dot de> Frank Raiser <frank dot raiser at uni-ulm dot de> 2005-07-27 02:30:47 PDT
             RE: [argouml-modules-dev] Code generation linus Linus Tolke 2005-07-27 13:38:10 PDT
                 Re: [argouml-modules-dev] Code generation Frank Raiser <frank dot raiser at uni-ulm dot de> Frank Raiser <frank dot raiser at uni-ulm dot de> 2005-07-30 05:02:38 PDT
             Re: [argouml-modules-dev] Code generation Luis Sergio Oliveira <euluis at zmail dot pt> Luis Sergio Oliveira <euluis at zmail dot pt> 2005-07-27 15:42:21 PDT
                 Re: [argouml-modules-dev] Code generation Frank Raiser <frank dot raiser at uni-ulm dot de> Frank Raiser <frank dot raiser at uni-ulm dot de> 2005-07-30 05:27:37 PDT
     RE: [argouml-modules-dev] Code generation linus Linus Tolke 2005-07-26 21:46:48 PDT
         Re: [argouml-modules-dev] Code generation Frank Raiser <frank dot raiser at uni-ulm dot de> Frank Raiser <frank dot raiser at uni-ulm dot de> 2005-07-27 01:55:10 PDT
Messages per page: