[Bprocessor-commit] model/src/net/sourceforge/bprocessor/model Project.java,1.29,1.30
Status: Pre-Alpha
Brought to you by:
henryml
From: Nikolaj B. <nbr...@us...> - 2006-01-30 10:08:22
|
Update of /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19275/src/net/sourceforge/bprocessor/model Modified Files: Project.java Log Message: File options now remeber last used path, and a few minor updates Index: Project.java =================================================================== RCS file: /cvsroot/bprocessor/model/src/net/sourceforge/bprocessor/model/Project.java,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** Project.java 27 Jan 2006 13:17:52 -0000 1.29 --- Project.java 30 Jan 2006 10:08:14 -0000 1.30 *************** *** 51,54 **** --- 51,60 ---- private boolean dirty; + /** The path to the current project */ + private String savePath; + + /** The last used path for for loading and saving */ + private String defaultPath; + /** The current project camera */ private Camera currentCamera; *************** *** 441,443 **** --- 447,481 ---- return currentCamera; } + + /** + * Gets the current save path + * @return The current save path + */ + public String getSavePath() { + return savePath; + } + + /** + * Sets the current save path + * @param savePath the path to the current project + */ + public void setSavePath(String savePath) { + this.savePath = savePath; + } + + /** + * Gets the last used path + * @return The default path + */ + public String getDefaultPath() { + return defaultPath; + } + + /** + * Sets the last used path + * @param defaultPath the path that was last used + */ + public void setDefaultPath(String defaultPath) { + this.defaultPath = defaultPath; + } } |