svn commit: r15498 - trunk/src/argouml-app/src/org/argouml/profile/init/InitProfileSubsystem.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2008-08-03 08:45:50-0700
New Revision: 15498

Modified:
   trunk/src/argouml-app/src/org/argouml/profile/init/InitProfileSubsystem.java

Log:
Issue 5286: Don't initialize profile subsystem more than once (primarily an issue for tests)

Modified: trunk/src/argouml-app/src/org/argouml/profile/init/InitProfileSubsystem.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/profile/init/InitProfileSubsystem.java?view=diff&rev=15498&p1=trunk/src/argouml-app/src/org/argouml/profile/init/InitProfileSubsystem.java&p2=trunk/src/argouml-app/src/org/argouml/profile/init/InitProfileSubsystem.java&r1=15497&r2=15498
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/profile/init/InitProfileSubsystem.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/profile/init/InitProfileSubsystem.java	2008-08-03 08:45:50-0700
@@ -37,8 +37,10 @@
      * Initialize the Profiles subsystem by binding the 2 packages together.
      */
     public void init() {
-        ProfileFacade.setManager(
-                new org.argouml.profile.internal.ProfileManagerImpl());
+        if (!ProfileFacade.isInitiated()) {
+            ProfileFacade.setManager(
+                    new org.argouml.profile.internal.ProfileManagerImpl());
+        }
     }
 
 }
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.