svn commit: r18252 - trunk/src/argouml-app/src/org/argouml/profile/ProfileFacade.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2010-04-13 10:45:39-0700
New Revision: 18252

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

Log:
Make reset() public so it can be used in other test packages (only)

Modified: trunk/src/argouml-app/src/org/argouml/profile/ProfileFacade.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/profile/ProfileFacade.java?view=diff&pathrev=18252&r1=18251&r2=18252
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/profile/ProfileFacade.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/profile/ProfileFacade.java	2010-04-13 10:45:39-0700
@@ -38,7 +38,9 @@
 
 package org.argouml.profile;
 
+import org.apache.log4j.Logger;
 import org.argouml.kernel.ProfileConfiguration;
+import org.argouml.model.InvalidElementException;
 
 /**
  * The <a href="http://en.wikipedia.org/wiki/Facade_pattern">Facade</a> of the 
@@ -50,6 +52,8 @@
  * @since 0.25.4
  */
 public class ProfileFacade {
+    
+    private static final Logger LOG = Logger.getLogger(ProfileFacade.class);
 
     /**
      * Register a profile in the {@link ProfileManager}.
@@ -89,7 +93,11 @@
         manager = profileManager;
     }
 
-    static void reset() {
+    /**
+     * Reset profile subsystem to initial state (primarily for testing).
+     */
+    public static void reset() {
+//        removeAllProfiles();
         manager = null;
     }

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2581054

To unsubscribe from this discussion, e-mail: [[email protected]].
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.