svn commit: r13164 - trunk/src_new/org/argouml/uml/reveng/ImportCommon.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-07-27 14:09:52-0700
New Revision: 13164

Modified:
   trunk/src_new/org/argouml/uml/reveng/ImportCommon.java

Log:
Remove unnecessary reference to root model.

Modified: trunk/src_new/org/argouml/uml/reveng/ImportCommon.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/uml/reveng/ImportCommon.java?view=diff&rev=13164&p1=trunk/src_new/org/argouml/uml/reveng/ImportCommon.java&p2=trunk/src_new/org/argouml/uml/reveng/ImportCommon.java&r1=13163&r2=13164
==============================================================================
--- trunk/src_new/org/argouml/uml/reveng/ImportCommon.java	(original)
+++ trunk/src_new/org/argouml/uml/reveng/ImportCommon.java	2007-07-27 14:09:52-0700
@@ -606,18 +606,16 @@
      */

     private String getQualifiedName(Object element) {

         StringBuffer sb = new StringBuffer();

-

-        Object root = Model.getModelManagementFactory().getRootModel();

-

+        

         Object ns = element;

-        while (ns != null && !root.equals(ns)) {

+        while (ns != null) {

             String name = Model.getFacade().getName(ns);

             if (name == null) {

                 name = "";

             }

             sb.insert(0, name);

             ns = Model.getFacade().getNamespace(ns);

-            if (ns != null && !root.equals(ns)) {

+            if (ns != null) {

                 sb.insert(0, ".");

             }

         }
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.