Revision: 3805
Author: [email protected]
Date: Thu Jul 29 08:33:14 2010
Log: The subject of the criticism is now in bold in the critic tables to help signal to users the object that has warnings or errors on it.
http://code.google.com/p/power-architect/source/detail?r=3805

Modified:
/trunk/src/main/java/ca/sqlpower/architect/swingui/critic/CriticismObjectRenderer.java

=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/swingui/critic/CriticismObjectRenderer.java Wed Jul 28 11:27:41 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/swingui/critic/CriticismObjectRenderer.java Thu Jul 29 08:33:14 2010
@@ -83,46 +83,58 @@
         if (value == null) {
             return "";
         } else if (value instanceof SQLTable) {
-            return ((SQLTable) value).getName();
+ return "<html><b>" + ((SQLTable) value).getName() + "</b></html>";
         } else if (value instanceof SQLIndex) {
             SQLIndex index = (SQLIndex) value;
             StringBuffer text = new StringBuffer();
+            text.append("<html>");
             if (index.getParent() != null) {
                 text.append(index.getParent().getName() + ".");
             } else {
                 text.append("(no parent).");
             }
+            text.append("<b>");
             text.append(index.getName());
+            text.append("</b></html>");
             return text.toString();
         } else if (value instanceof SQLColumn) {
             SQLColumn sqlColumn = (SQLColumn) value;
             StringBuffer text = new StringBuffer();
+            text.append("<html>");
             if (sqlColumn.getParent() != null) {
                 text.append(sqlColumn.getParent().getName() + ".");
             } else {
                 text.append("(no parent).");
             }
+            text.append("<b>");
             text.append(sqlColumn.getName());
+            text.append("</b></html>");
             return text.toString();
         } else if (value instanceof SQLRelationship) {
             SQLRelationship relation = (SQLRelationship) value;
             StringBuffer text = new StringBuffer();
+            text.append("<html>");
             if (relation.getParent() != null) {
                 text.append(relation.getParent().getName() + ".");
             } else {
                 text.append("(no parent).");
             }
+            text.append("<b>");
             text.append(relation.getName());
+            text.append("</b></html>");
             return text.toString();
         } else if (value instanceof SQLImportedKey) {
             SQLRelationship relation = (SQLRelationship) value;
             StringBuffer text = new StringBuffer();
+            text.append("<html>");
             if (relation.getParent() != null) {
                 text.append(relation.getParent().getName() + ".");
             } else {
                 text.append("(no parent).");
             }
+            text.append("<b>");
             text.append(relation.getName());
+            text.append("</b></html>");
             return text.toString();
         } else if (value instanceof SQLObject) {
             String name = ((SQLObject) value).getShortDisplayName();

Reply via email to