incubator-isis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmatth...@apache.org
Subject svn commit: r1087915 - /incubator/isis/trunk/core/metamodel/src/main/java/org/apache/isis/core/metamodel/util/Dump.java
Date Fri, 01 Apr 2011 22:08:30 GMT
Author: rmatthews
Date: Fri Apr  1 22:08:29 2011
New Revision: 1087915

URL: http://svn.apache.org/viewvc?rev=1087915&view=rev
Log:
Fixed tree layout in object graph dump

Modified:
    incubator/isis/trunk/core/metamodel/src/main/java/org/apache/isis/core/metamodel/util/Dump.java

Modified: incubator/isis/trunk/core/metamodel/src/main/java/org/apache/isis/core/metamodel/util/Dump.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/core/metamodel/src/main/java/org/apache/isis/core/metamodel/util/Dump.java?rev=1087915&r1=1087914&r2=1087915&view=diff
==============================================================================
--- incubator/isis/trunk/core/metamodel/src/main/java/org/apache/isis/core/metamodel/util/Dump.java
(original)
+++ incubator/isis/trunk/core/metamodel/src/main/java/org/apache/isis/core/metamodel/util/Dump.java
Fri Apr  1 22:08:29 2011
@@ -67,9 +67,9 @@ public final class Dump {
                 if (ignoreObjects.contains(element)) {
                     s.append("*\n");
                 } else {
-                    s.indent();
-                    graph(element, level + 1, ignoreObjects, s, authenticationSession);
-                    s.unindent();
+//                    s.indent();
+                    graph(element, level + 1, ignoreObjects, s, authenticationSession);
+//                    s.unindent();
                 }
             }
         }
@@ -94,7 +94,7 @@ public final class Dump {
 
     private static void simpleObject(final ObjectAdapter object, final DebugBuilder s) {
         s.appendln(object.titleString());
-        s.indent();
+  //     s.indent();
         final ObjectSpecification objectSpec = object.getSpecification();
         if (objectSpec.isCollection()) {
             final CollectionFacet facet = CollectionFacetUtils.getCollectionFacetFromSpec(object);
@@ -123,7 +123,7 @@ public final class Dump {
                 s.appendException(e);
             }
         }
-        s.unindent();
+ //       s.unindent();
     }
 
     private static void graph(
@@ -429,8 +429,6 @@ public final class Dump {
                     debug.appendln(field.debugData());
 
                     debug.unindent();
-                    debug.unindent();
-                    debug.indent();
                 }
             }
         } catch (final RuntimeException e) {



Mime
View raw message