svn commit: r13594 - trunk/src_new/org/argouml/uml/diagram/deployment/ui/UMLDeploymentDiagram.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2007-09-26 01:03:36-0700
New Revision: 13594

Modified:
   trunk/src_new/org/argouml/uml/diagram/deployment/ui/UMLDeploymentDiagram.java

Log:
Allow old diagrams to load and fix failing tests

Modified: trunk/src_new/org/argouml/uml/diagram/deployment/ui/UMLDeploymentDiagram.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/uml/diagram/deployment/ui/UMLDeploymentDiagram.java?view=diff&rev=13594&p1=trunk/src_new/org/argouml/uml/diagram/deployment/ui/UMLDeploymentDiagram.java&p2=trunk/src_new/org/argouml/uml/diagram/deployment/ui/UMLDeploymentDiagram.java&r1=13593&r2=13594
==============================================================================
--- trunk/src_new/org/argouml/uml/diagram/deployment/ui/UMLDeploymentDiagram.java	(original)
+++ trunk/src_new/org/argouml/uml/diagram/deployment/ui/UMLDeploymentDiagram.java	2007-09-26 01:03:36-0700
@@ -121,11 +121,11 @@
      * @author [email protected] Jan. 24, 2002
      */
     public void setNamespace(Object handle) {
-        if (!Model.getFacade().isAPackage(handle)) {
+        if (!Model.getFacade().isANamespace(handle)) {
             LOG.error(
-                "Illegal argument. Object " + handle + " is not a package");
+                "Illegal argument. Object " + handle + " is not a namespace");
             throw new IllegalArgumentException(
-                "Illegal argument. Object " + handle + " is not a package");
+                "Illegal argument. Object " + handle + " is not a namespace");
         }
         Object m = handle;
         boolean init = (null == getNamespace());
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.