cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r701357 - /cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/ObjEntityAttributeTab.java
Date Fri, 03 Oct 2008 12:01:38 GMT
Author: aadamchik
Date: Fri Oct  3 05:01:38 2008
New Revision: 701357

URL: http://svn.apache.org/viewvc?rev=701357&view=rev
Log:
CAY-795 Horizontal inheritance
(patch 3 from Dzmitry Rusak - fixing row selection)

Modified:
    cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/ObjEntityAttributeTab.java

Modified: cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/ObjEntityAttributeTab.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/ObjEntityAttributeTab.java?rev=701357&r1=701356&r2=701357&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/ObjEntityAttributeTab.java
(original)
+++ cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/ObjEntityAttributeTab.java
Fri Oct  3 05:01:38 2008
@@ -324,11 +324,6 @@
                     Font font = getFont();
                     Font newFont = font.deriveFont(Font.ITALIC);
                     setFont(newFont);
-                } 
-                else {
-                    setBackground(isSelected && !hasFocus
-                            ? table.getSelectionBackground()
-                            : table.getBackground());
                 }
                 setIcon(null);
             } else {
@@ -338,6 +333,9 @@
                 }
                 setText("");
             }
+            setBackground(isSelected && !hasFocus
+                    ? table.getSelectionBackground()
+                    : table.getBackground());
 
             return this;
         }



Mime
View raw message