]> source.dussan.org Git - vaadin-framework.git/commitdiff
user set debug id's now prefixed with "PID_S"
authorMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 20 Dec 2007 15:19:50 +0000 (15:19 +0000)
committerMatti Tahvonen <matti.tahvonen@itmill.com>
Thu, 20 Dec 2007 15:19:50 +0000 (15:19 +0000)
svn changeset:3284/svn branch:trunk

src/com/itmill/toolkit/terminal/gwt/server/CommunicationManager.java

index 8a448e1789ec4beb316db7f584a0877ee77f9e35..c97ba13ec10a3f06149f74569d242c84f9559f8b 100644 (file)
@@ -755,7 +755,8 @@ public class CommunicationManager implements Paintable.RepaintRequestListener,
     }
 
     /**
-     * Gets the Paintable Id.
+     * Gets the Paintable Id. If Paintable has debug id set it will be used
+     * prefixed with "PID_S". Otherwise a sequenced ID is created.
      * 
      * @param paintable
      * @return the paintable Id.
@@ -768,6 +769,8 @@ public class CommunicationManager implements Paintable.RepaintRequestListener,
             id = paintable.getDebugId();
             if (id == null) {
                 id = "PID" + Integer.toString(idSequence++);
+            } else {
+                id = "PID_S" + id;
             }
             paintableIdMap.put(paintable, id);
             idPaintableMap.put(id, paintable);