Login | Register
My pages Projects Community openCollabNet

Discussions > modules-dev > Module loading.. or not

argouml
Discussion topic

Back to topic list

Module loading.. or not

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-30 16:35:47 PDT
Message Hello again,

I am trying to register a code generator the old way and have it show up
in the generate code dialog (F7) next to csharp and java. To this end I
copied most of the code from the csharp module so that I now have a class
looking like this:
public class ArgoUMLModule extends Generator2 implements PluggableNotation,
        FileGenerator

I don't think I even want to implement the PluggableNotation as I intent to
generate code for source code files not for the dialogs, but I left it in
just for the sake of it.

However I am experiencing a bit of a strange behavior if the documentation
in the cookbook is correct. Chapter 6.2.2.1 says this is what should happen
to my module:
   1. create the specified classes
   2. call initializeModule on this class
   3. place the class object into the internal list of modules

The ModuleLoader does indeed create an instance of the ArgoUMLModule class,
but the initializeModule() method is never called. Actually the loader doesn't
seem to call anything on the instance it created so I'm kinda lost there.
The argouml.log file only warns about some icons which were not found.

Any idea what I'm missing there?
--
Raiser, Frank
Student @ University of Ulm (www.uni-ulm.de)

It is one of those instances where the reasoner can produce an effect which
seems remarkable to his neighbor, because the latter has missed the one
little point which is the basis of the deduction. ("Sherlock Holmes")

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

Messages

Show all messages in topic

Module loading.. or not Frank Raiser <frank dot raiser at uni-ulm dot de> Frank Raiser <frank dot raiser at uni-ulm dot de> 2005-07-30 16:35:47 PDT
Messages per page: