chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1043016 - /incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/CollectionRenderer.java
Date Tue, 07 Dec 2010 12:51:01 GMT
Author: fmui
Date: Tue Dec  7 12:51:00 2010
New Revision: 1043016

URL: http://svn.apache.org/viewvc?rev=1043016&view=rev
Log:
CMIS Workbench: fixed display of some property values (Swing bug workaround)

Modified:
    incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/CollectionRenderer.java

Modified: incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/CollectionRenderer.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/CollectionRenderer.java?rev=1043016&r1=1043015&r2=1043016&view=diff
==============================================================================
--- incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/CollectionRenderer.java
(original)
+++ incubator/chemistry/opencmis/trunk/chemistry-opencmis-workbench/chemistry-opencmis-workbench/src/main/java/org/apache/chemistry/opencmis/workbench/swing/CollectionRenderer.java
Tue Dec  7 12:51:00 2010
@@ -59,6 +59,7 @@ public class CollectionRenderer extends 
         StringBuilder sb = new StringBuilder("<html>");
         if (col != null) {
             for (Object o : col) {
+                sb.append("<span>"); // workaround for a bug in Swing
                 if (o == null) {
                     sb.append("<i>null</i>");
                 } else if (o instanceof GregorianCalendar) {
@@ -68,7 +69,7 @@ public class CollectionRenderer extends 
                 } else {
                     sb.append(o.toString());
                 }
-                sb.append("<br/>");
+                sb.append("</span><br/>");
             }
         }
         sb.append("</html>");



Mime
View raw message