OK, I think I figured it out.  It looks like the persistence code uses
introspection to see if you have a constructor like     public
FigXXX(Object node, int x, int y).  If you don't, it uses the default
constructor.  So now, extenders of figures must provide this
constructor.

 

Jeff

 

________________________________

From: Gunderson, Jeff [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 23, 2007 12:42 PM
To: [email protected]
Subject: [argouml-dev] Figure persistence

 

Hi,

 

I'm still battling away trying to get our module updated to the latest
argouml and have most issues resolved but need tome advice on figure
persistence.  We extend some figures like FigPackage but I'm having
trouble instantiating the figures when opening a project.  When our
diagram is loaded it looks like the default constructor for our figure
is called.  But it can't call the default constructor for FigPackage as
it has no default constructor.  In older versions FigPackage had a
default constructor.  

 

If anyone can shed some light, I would appreciate it.

 

Jeff 

Reply via email to