Login | Register
My pages Projects Community openCollabNet

Discussions > modules-dev > SV: [argouml-modules-dev] Reverse Engineering

Discussion topic

Back to topic list

SV: [argouml-modules-dev] Reverse Engineering

Author Linus Tolke <Linus dot Tolke at enea dot se>
Full name Linus Tolke <Linus dot Tolke at enea dot se>
Date 2006-04-27 03:22:37 PDT
Message Hello Hind!
For this old version of argouml, when it starts, it reads a file with all "modules" to load. Those are loaded and entered into a list of plugins.
The Import class appearantly requires at least one of them to be an import plugin.
I guess you have not run org.argouml.applicat​ion.Main.main() that reads the file and loads these modules before attempting to create Import and that is probably the problem.
We are working towards a redesigned plugin support. This means that instead of reading a file on startup and then when creating the Import class going through the list, the plugin should register itself to some Import-registry.
This means that instead of:
    org.argouml.applicat​ion.Main.main() <- reading some file
and then
    org.argouml.uml.reve​ng.Import.Import() <- polling the global registry.
We will have:
    whatever plugin you want.whatever method you want() <- registering (perhaps creating the register)
    org.argouml.uml.reve​ng.Import.Import() <- polling the specific registry.
When loading modules into ArgoUML, the interface for loading modules has the "whatever method you want()" specified and it is called when loading a module. This means that you could also register later on, from some other event if you want and not necessarily when ArgoUML is starting.
Linus Tolke
linus at tigris dot org



Från: Hind Al-Hakami [mailto:h_alhakami at yahoo dot com]
Skickat: to 2006-04-27 11:19
Till: modules-dev at argouml dot tigris dot org
Ämne: [argouml-modules-dev] Reverse Engineering

I'm trying to import java code and then export the xmi file for that code, I added the following jars to my classpath: argouml.jar, antlrall.jar, argouml-model.jar, gef.jar, log4j.jar.
But when I tryed to import by using
     Import imp = new Import();
I've got this error:
log4j:WARN No appenders could be found for logger (org.argouml.applica​tion.configuration.C​onfigurationProperti​es).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.RuntimeException: Internal error. No import modules defined
      at org.argouml.uml.reve​ng.Import.<init​>(Import.java:168)
NOTE: I'm using ArgoUML-0.20.BETA_2, and Eclipse3.1.
Thanks in Advance,


Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries <http://us.rd.yahoo.c​om/mail_us/taglines/​postman9/*http://us.​rd.yahoo.com/evt=396​66/*http://messenger​.yahoo.com/> for just 2¢/min with Yahoo! Messenger with Voice.

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


Show all messages in topic

Reverse Engineering hind Hind 2006-04-27 02:19:51 PDT
     SV: [argouml-modules-dev] Reverse Engineering Linus Tolke <Linus dot Tolke at enea dot se> Linus Tolke <Linus dot Tolke at enea dot se> 2006-04-27 03:22:37 PDT
Messages per page: