svn commit: r13541 - trunk/tests/org/argouml/model/InitializeModel.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-09-11 13:19:08-0700
New Revision: 13541

Modified:
   trunk/tests/org/argouml/model/InitializeModel.java

Log:
Don't continually re-initialize Model subsystem.  Causes TestModelFacade3 to run out of heap at 48M.

Modified: trunk/tests/org/argouml/model/InitializeModel.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/tests/org/argouml/model/InitializeModel.java?view=diff&rev=13541&p1=trunk/tests/org/argouml/model/InitializeModel.java&p2=trunk/tests/org/argouml/model/InitializeModel.java&r1=13540&r2=13541
==============================================================================
--- trunk/tests/org/argouml/model/InitializeModel.java	(original)
+++ trunk/tests/org/argouml/model/InitializeModel.java	2007-09-11 13:19:08-0700
@@ -50,6 +50,9 @@
      * Initialize the Model subsystem with the default ModelImplementation.
      */
     public static void initializeDefault() {
+    	if (Model.isInitiated()) {
+    	    return;
+    	}
         String className =
             System.getProperty(
                     "argouml.model.implementation",
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.