svn commit: r13822 - trunk/src_new/org/argouml/application/Main.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: mvw
Date: 2007-11-23 11:53:53-0800
New Revision: 13822

Modified:
   trunk/src_new/org/argouml/application/Main.java

Log:
Clarify exactly where the ProjectBrowser is created.

Modified: trunk/src_new/org/argouml/application/Main.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/application/Main.java?view=diff&rev=13822&p1=trunk/src_new/org/argouml/application/Main.java&p2=trunk/src_new/org/argouml/application/Main.java&r1=13821&r2=13822
==============================================================================
--- trunk/src_new/org/argouml/application/Main.java	(original)
+++ trunk/src_new/org/argouml/application/Main.java	2007-11-23 11:53:53-0800
@@ -280,7 +280,7 @@
             // 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");
-            initializeGUI(splash);
+            ProjectBrowser pb = initializeGUI(splash);
 
             SubsystemUtility.initSubsystem(new InitUiCmdSubsystem());
             SubsystemUtility.initSubsystem(new InitNotationUI());
@@ -314,9 +314,6 @@
                 urlToOpen = projectUrl(projectName, urlToOpen);
             }
 
-            st.mark("initialize ProjectBrowser");
-            ProjectBrowser pb = ProjectBrowser.getInstance();
-
             st.mark("perform commands");
             if (batch) {
                 performCommands(commands);
@@ -744,7 +741,7 @@
      *
      * @param splash the splash screeen
      */
-    private static void initializeGUI(SplashScreen splash) {
+    private static ProjectBrowser initializeGUI(SplashScreen splash) {
         // make the projectbrowser
         JPanel todoPane = new ToDoPane(splash);
 	ProjectBrowser pb = ProjectBrowser.makeInstance(splash, true, todoPane);
@@ -783,7 +780,8 @@
                     "SPACE", "pressed",
                     "released SPACE", "released"
                 })
-        );         
+        );  
+        return pb;
     }
 
     /**
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.