You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2010/02/05 15:06:26 UTC

svn commit: r906940 - /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/LayoutContext.java

Author: lofwyr
Date: Fri Feb  5 14:06:26 2010
New Revision: 906940

URL: http://svn.apache.org/viewvc?rev=906940&view=rev
Log:
TOBAGO-606: cleanup

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/LayoutContext.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/LayoutContext.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/LayoutContext.java?rev=906940&r1=906939&r2=906940&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/LayoutContext.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/LayoutContext.java Fri Feb  5 14:06:26 2010
@@ -66,12 +66,16 @@
     layoutManager.postProcessing(Orientation.HORIZONTAL);
     layoutManager.postProcessing(Orientation.VERTICAL);
 
+    log();
+  }
+
+  private void log() {
     StringBuffer buffer = new StringBuffer("\n");
-    debug(buffer, (UIComponent) container, 0);
+    log(buffer, (UIComponent) container, 0);
     LOG.info(buffer);
   }
 
-  private void debug(StringBuffer buffer, UIComponent component, int depth) {
+  private void log(StringBuffer buffer, UIComponent component, int depth) {
     for (int i = 0; i < depth; i++) {
       buffer.append("  ");
     }
@@ -92,7 +96,7 @@
     }
     buffer.append("\n");
     for (Object child : component.getChildren()) {
-      debug(buffer, (UIComponent) child, depth + 2);
+      log(buffer, (UIComponent) child, depth + 2);
     }
   }
 }