cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r895607 - in /cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler: editor/ObjEntityAttributeTab.java util/CayenneTable.java
Date Mon, 04 Jan 2010 11:56:24 GMT
Author: oltka
Date: Mon Jan  4 11:56:24 2010
New Revision: 895607

URL: http://svn.apache.org/viewvc?rev=895607&view=rev
Log:
CAY-1251 Memorize user-selected column widths in preferences

* new error: if rename class nema in embeddable and we have designed embeddable attribute,
 Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: javax.swing.table.DefaultTableModel
	at org.apache.cayenne.modeler.util.CayenneTable.getCayenneModel(CayenneTable.java:87)
	at org.apache.cayenne.modeler.util.CayenneTable.select(CayenneTable.java:103)
	at org.apache.cayenne.modeler.editor.ObjEntityAttributeTab.objAttributeChanged(ObjEntityAttributeTab.java:288)
	at org.apache.cayenne.modeler.ProjectController.fireObjAttributeEvent(ProjectController.java:1531)
	at org.apache.cayenne.modeler.editor.EmbeddableTab.setClassName(EmbeddableTab.java:161)
	at org.apache.cayenne.modeler.editor.EmbeddableTab$1.updateModel(EmbeddableTab.java:78)
	at org.apache.cayenne.modeler.util.TextAdapter.updateModel(TextAdapter.java:160)
	at org.apache.cayenne.modeler.util.TextAdapter$2.verify(TextAdapter.java:93)

Modified:
    cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/ObjEntityAttributeTab.java
    cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/util/CayenneTable.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=895607&r1=895606&r2=895607&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
Mon Jan  4 11:56:24 2010
@@ -285,6 +285,7 @@
     }
 
     public void objAttributeChanged(AttributeEvent e) {
+        rebuildTable((ObjEntity) e.getEntity());
         table.select(e.getAttribute());
     }
 

Modified: cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/util/CayenneTable.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/util/CayenneTable.java?rev=895607&r1=895606&r2=895607&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/util/CayenneTable.java
(original)
+++ cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/util/CayenneTable.java
Mon Jan  4 11:56:24 2010
@@ -20,7 +20,6 @@
 package org.apache.cayenne.modeler.util;
 
 import java.awt.Component;
-import java.awt.event.MouseListener;
 
 import javax.swing.DefaultCellEditor;
 import javax.swing.DefaultListSelectionModel;



Mime
View raw message