svn commit: r17263 - trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/extension_mechanisms/ActionNewStereotype.java

Bob Tarling <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2009-08-11 00:02:12-0700
New Revision: 17263

Modified:
   trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/extension_mechanisms/ActionNewStereotype.java

Log:
Log when we fail to create a stereotype

Modified: trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/extension_mechanisms/ActionNewStereotype.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/extension_mechanisms/ActionNewStereotype.java?view=diff&pathrev=17263&r1=17262&r2=17263
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/extension_mechanisms/ActionNewStereotype.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/ui/foundation/extension_mechanisms/ActionNewStereotype.java	2009-08-11 00:02:12-0700
@@ -29,6 +29,7 @@
 
 import javax.swing.Action;
 
+import org.apache.log4j.Logger;
 import org.argouml.i18n.Translator;
 import org.argouml.kernel.Project;
 import org.argouml.kernel.ProjectManager;
@@ -44,6 +45,8 @@
  * @author [email protected]
  */
 public class ActionNewStereotype extends AbstractActionNewModelElement {
+    
+    final static Logger LOG = Logger.getLogger(ActionNewStereotype.class);
 
     /**
      * The constructor.
@@ -69,6 +72,9 @@
                     model,
                     models
             );
+        if (newStereo == null) {
+            LOG.error("We failed to create a stereotype");
+        }
         if (Model.getFacade().isAModelElement(t)) {
             Object ns = Model.getFacade().getNamespace(t);
             if (Model.getFacade().isANamespace(ns)) {

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

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.