cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r958866 - /cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/ProjectTreeView.java
Date Tue, 29 Jun 2010 08:09:55 GMT
Author: aadamchik
Date: Tue Jun 29 08:09:55 2010
New Revision: 958866

URL: http://svn.apache.org/viewvc?rev=958866&view=rev
Log:
CAY-1457 All DataMaps are expanded by default when a project is opened

* patch by Rostislav Kravchenko (sans DISCONTIGUOUS_TREE_SELECTION removal)
not logging in RELEASE-NOTES, as this issue did not exist in 3.0...

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

Modified: cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/ProjectTreeView.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/ProjectTreeView.java?rev=958866&r1=958865&r2=958866&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/ProjectTreeView.java
(original)
+++ cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/ProjectTreeView.java
Tue Jun 29 08:09:55 2010
@@ -23,7 +23,6 @@ import java.awt.event.MouseAdapter;
 import java.awt.event.MouseEvent;
 import java.util.ArrayList;
 import java.util.Comparator;
-import java.util.Enumeration;
 import java.util.List;
 
 import javax.swing.JMenuItem;
@@ -196,16 +195,8 @@ public class ProjectTreeView extends JTr
         ProjectTreeModel model = new ProjectTreeModel(project);
         setRootVisible(true);
         setModel(model);
-
-        // expand top level
         getSelectionModel().setSelectionMode(
                 TreeSelectionModel.DISCONTIGUOUS_TREE_SELECTION);
-        Enumeration level = model.getRootNode().children();
-        while (level.hasMoreElements()) {
-            DefaultMutableTreeNode node = (DefaultMutableTreeNode) level.nextElement();
-            TreePath path = new TreePath(node.getPath());
-            expandPath(path);
-        }
     }
 
     /**



Mime
View raw message