Revision: 3355
Author: [email protected]
Date: Thu Mar  4 09:45:30 2010
Log: NEW - bug 2722: Unable to open existing project
http://trillian.sqlpower.ca/bugzilla/show_bug.cgi?id=2722

Corrected the prompt on doing a 'save as' of the project. The user will not be notified that they are saving an older file
version during a 'save as'.
http://code.google.com/p/power-architect/source/detail?r=3355

Modified:
 /trunk/src/ca/sqlpower/architect/ProjectLoader.java
 /trunk/src/ca/sqlpower/architect/swingui/ArchitectSwingSessionImpl.java

=======================================
--- /trunk/src/ca/sqlpower/architect/ProjectLoader.java Thu Mar 4 09:30:17 2010 +++ /trunk/src/ca/sqlpower/architect/ProjectLoader.java Thu Mar 4 09:45:30 2010
@@ -988,6 +988,15 @@
     public void setFile(File argFile) {
         this.file = argFile;
     }
+
+    /**
+     * Clears the file version if the file to save to is being changed to a
+     * new location.
+     */
+    public void clearFileVersion() {
+        fileVersion = null;
+    }
+
     /**
* Adds all the tables in the given database into the playpen database. This is really only * for loading projects, so please think twice about using it for other stuff.
=======================================
--- /trunk/src/ca/sqlpower/architect/swingui/ArchitectSwingSessionImpl.java Thu Mar 4 08:08:10 2010 +++ /trunk/src/ca/sqlpower/architect/swingui/ArchitectSwingSessionImpl.java Thu Mar 4 09:45:30 2010
@@ -524,6 +524,7 @@

                 getRecentMenu().putRecentFileName(file.getAbsolutePath());
                 project.setFile(file);
+                project.clearFileVersion();
String projName = file.getName().substring(0, file.getName().length()-".architect".length()); //$NON-NLS-1$
                 setName(projName);
frame.setTitle(Messages.getString("ArchitectSwingSessionImpl.mainFrameTitle", projName)); //$NON-NLS-1$

Reply via email to