cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From and...@apache.org
Subject svn commit: r702068 - in /cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler: WelcomeScreen.java action/SaveAsAction.java
Date Mon, 06 Oct 2008 09:58:59 GMT
Author: andrey
Date: Mon Oct  6 02:58:59 2008
New Revision: 702068

URL: http://svn.apache.org/viewvc?rev=702068&view=rev
Log:
CAY-894 CM Usability: Welcome Screen (Panel)
Recent file list should be updated at 'Save As' action (for new projects)

Modified:
    cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/WelcomeScreen.java
    cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/SaveAsAction.java

Modified: cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/WelcomeScreen.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/WelcomeScreen.java?rev=702068&r1=702067&r2=702068&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/WelcomeScreen.java
(original)
+++ cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/WelcomeScreen.java
Mon Oct  6 02:58:59 2008
@@ -188,7 +188,7 @@
     
     public void recentFileListChanged() {
         ModelerPreferences pref = ModelerPreferences.getPreferences();
-        final Vector<?> arr = pref.getVector(ModelerPreferences.LAST_PROJ_FILES);
+        final Vector<?> arr = (Vector<?>) pref.getVector(ModelerPreferences.LAST_PROJ_FILES).clone();
         
         recentsList.setModel(
             new AbstractListModel() {

Modified: cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/SaveAsAction.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/SaveAsAction.java?rev=702068&r1=702067&r2=702068&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/SaveAsAction.java
(original)
+++ cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/SaveAsAction.java
Mon Oct  6 02:58:59 2008
@@ -88,6 +88,7 @@
 
         getApplication().getFrameController().addToLastProjListAction(
                 p.getMainFile().getAbsolutePath());
+        Application.getFrame().fireRecentFileListChanged();
 
         /**
          * Reset the watcher now
@@ -147,7 +148,7 @@
             return false;
         }
 
-        Project project = (Project) path.firstInstanceOf(Project.class);
+        Project project = path.firstInstanceOf(Project.class);
         return project != null && project.isModified();
     }
 }



Mime
View raw message