[Jreepad-CVS] jreepad/src/jreepad JreepadTreeModel.java, 1.6, 1.7 JreepadPrefs.java, 1.27, 1.28
Brought to you by:
danstowell
From: PeWu <pe...@us...> - 2007-09-28 14:29:26
|
Update of /cvsroot/jreepad/jreepad/src/jreepad In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv28006/src/jreepad Modified Files: JreepadTreeModel.java JreepadPrefs.java Log Message: Added experimental encrypted file format Index: JreepadPrefs.java =================================================================== RCS file: /cvsroot/jreepad/jreepad/src/jreepad/JreepadPrefs.java,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** JreepadPrefs.java 12 Apr 2007 21:23:23 -0000 1.27 --- JreepadPrefs.java 28 Sep 2007 14:29:22 -0000 1.28 *************** *** 123,126 **** --- 123,127 ---- public static final int FILETYPE_XML = 0; public static final int FILETYPE_HJT = 1; + public static final int FILETYPE_XML_ENCRYPTED = 2; int mainFileType; public static final String[] mainFileTypes = {"Jreepad XML","Treepad HJT"}; Index: JreepadTreeModel.java =================================================================== RCS file: /cvsroot/jreepad/jreepad/src/jreepad/JreepadTreeModel.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** JreepadTreeModel.java 3 Apr 2007 12:41:30 -0000 1.6 --- JreepadTreeModel.java 28 Sep 2007 14:29:22 -0000 1.7 *************** *** 29,32 **** --- 29,37 ---- /** + * Password for saving encrypted files. + */ + private String password = null; + + /** * True if the current document content has been saved. */ *************** *** 115,117 **** --- 120,132 ---- this.encoding = encoding; } + + public String getPassword() + { + return password; + } + + public void setPassword(String password) + { + this.password = password; + } } |