Thanks Christian, (1) I've missed the thread. I've read it and it was not very clear to me if profiles need that the Modules subsystem to be initialized before the GUI. Can someone confirm this?
(2) Anyway I have found a very simple solution. I moved the creation of ToDoPane from Main#initializeGUI(...) to ProjectBrowser#createPanels(...). It seems to me that this is a clean solution since I don't understand why the ToDoPane was created differently from the other panes. Any input on this? If this is ok, then I can prepare a consistent solution by removing the unused toDoPane argument from ProjectBrowser constructor and post it here. If both (1) and (2) are ok, than we have managed to make the order of initialization of Modules and GUI subsystems independent, even with Profiles. :) Regards, Sergio. > -----Original Message----- > From: Christian López Espínola [mailto:[EMAIL PROTECTED] > Sent: segunda-feira, 26 de Novembro de 2007 15:30 > To: [email protected] > Subject: Re: [argouml-dev] Loading tabs for the DetailsPane > > Hi Sérgio, > > This change was needed for the implementation of profiles in ArgoUML. > > Check this thread: > http://argouml.tigris.org/servlets/ReadMsg?list=dev&msgNo=21360 > > Please create an issue, and we'll work on allowing modules creating > panels. > Of course, all help is accepted. :-) > > > On 11/26/07, Sérgio Lopes <[EMAIL PROTECTED]> wrote: > > > > > > > > > > I've managed to start Argo by initializing the GUI before the init of > > Modules subsystem, in Main. > > > > Will this be changed in the trunk? > > > > > > > > I also noticed that module classes are loaded twice. Is this ok? > > > > > > > > Regarding loading the Tabs, I've done it with: > > > > ((DetailsPane) > > ProjectBrowser.getInstance().getDetailsPane()).getTabs().addTab(title, > > p); > > > > Is this the planned way for modules doing it? > > > > > > > > Sergio. > > > > > > > > > > ________________________________ > > > > > > From: Sérgio Lopes [mailto:[EMAIL PROTECTED] > > Sent: segunda-feira, 26 de Novembro de 2007 13:57 > > To: [email protected] > > Subject: [argouml-dev] Loading tabs for the DetailsPane > > > > > > > > > > Hi, > > > > > > > > I've noticed that ConfigLoader#loadTabs( ) has been deprecated. I wonder > > which is the standard way for modules to add tabs to the Details panel? > > > > > > > > After a quick search I've tried to do it in ModuleInterface#enable(): > > > > ProjectBrowser.getInstance().getDetailsPane().add(p); > > > > but Argo failed to start. Then I've tried > > > > ProjectBrowser.getInstance().addPanel(p, Position.South) ; > > > > with the same result. > > > > Apparently, this happens because when ProjectBrowser.getInstance() > forces > > the instantiation of ProjectBrowser with a 'null' ToDoPane, instead of > the > > lazy instantiation by Main#initializeGUI( ). > > > > > > > > Regards, > > > > Sergio. > > > > > > > > > > > > -------------------------------------------------------------- > > > > Sérgio Adriano Fernandes Lopes > > > > > > > > Address: Dpto Electronica Industrial e-mail: > > [EMAIL PROTECTED] > > > > Universidade do Minho Tel.: +351 253 510387 > > > > Campus de Azurem Fax: +351 253 510189 > > > > 4800-058 Guimaraes > > > > PORTUGAL > > > > -------------------------------------------------------------- > > > > > > > -- > Regards, > > Christian López Espínola --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
