svn commit: r13388 - branches/gsoc2007/maurelio1234/branch2/src_new/org/argouml/application/Main.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: maurelio1234
Date: 2007-08-17 16:37:28-0700
New Revision: 13388

Modified:
   branches/gsoc2007/maurelio1234/branch2/src_new/org/argouml/application/Main.java

Log:
initializing modules before the first project is created/loaded

Modified: branches/gsoc2007/maurelio1234/branch2/src_new/org/argouml/application/Main.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/maurelio1234/branch2/src_new/org/argouml/application/Main.java?view=diff&rev=13388&p1=branches/gsoc2007/maurelio1234/branch2/src_new/org/argouml/application/Main.java&p2=branches/gsoc2007/maurelio1234/branch2/src_new/org/argouml/application/Main.java&r1=13387&r2=13388
==============================================================================
--- branches/gsoc2007/maurelio1234/branch2/src_new/org/argouml/application/Main.java	(original)
+++ branches/gsoc2007/maurelio1234/branch2/src_new/org/argouml/application/Main.java	2007-08-17 16:37:28-0700
@@ -262,9 +262,21 @@
         
         updateProgress(splash, 5, "statusmsg.bar.model-subsystem");
 
+        // Initialize the module loader.
+        // At least the plug-ins that provide profiles need to be initialized before 
+        // the project is loaded, because some of these profile may have been
+        // set as default profiles and need to be applied to the project as soon 
+        // as it has been created or loaded.
+        //
+        // the first instance of a Project is needed during the gui initialization
+        //
+        st.mark("modules");
+
+        initSubsystem(new InitModuleLoader());
+        
         // Initialize the Java code generator.
         GeneratorJava.getInstance();
-        
+
 	// The reason the gui is initialized before the commands are run
 	// is that some of the commands will use the projectbrowser.
 	st.mark("initialize gui");
@@ -365,11 +377,6 @@
             splash.getStatusBar().showProgress(75);
         }
 
-        // Initialize the module loader.
-        st.mark("modules");
-
-        initSubsystem(new InitModuleLoader());
-
         st.mark("open window");
 
         updateProgress(splash, 95, "statusmsg.bar.open-project-browser");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.