Hello Christian!
We don't have a good design for the order in which things are getting
initialized when the application starts.
I personally think that modules should not depend on the GUI to be
initialized. I would like this to be solved by allowing modules to register
their additions to the toolbar without having the GUI initialized. It might
be that the GUI need to be redesigned to allow registration before
initialization but I hope that is feasable.
/Linus
2007/9/30, Christian López Espínola <[EMAIL PROTECTED]>:
>
> Hi all,
>
> I have found a NullPointerException when launching the Sequence2 module.
>
> I have investigated why this occurs and I found that the problem is
> because since the profile branch merge with trunk, the modules are
> initialized before the GUI.
> See
> http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/application/Main.java?rev=13614&r1=13614&r2=13613
>
> I need the GUI initialized for adding some stuff to the menubar and
> the toolbar when the module is enabled.
>
> Can this change be reverted? Or what approach should I take now?
>
> TIA.
>
> --
> Regards,
>
> Christian López Espínola
>