[ https://issues.apache.org/jira/browse/PDFBOX-2748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14492781#comment-14492781 ]
khyrul bashar commented on PDFBOX-2748: --------------------------------------- Preference API is actually a better option than using Properties Class as to achieve cross-platform implementation we have to deal with all OS's respectively in Properties API implementation while Preference takes care of this on its own. In spite of using Preference API my first implementation was not acceptable as I was following a post and it turns out though I've written the code myself but couldn't overcome the shadow of the respective tutorial and it looked like a copy-paste implementation. And thus the Properties API came to the table. Anyway, while coding I've realized Preference is the best option here. I'm now attaching a new patch which uses Preference API. The difference from last implementation is that now RecentFiles class saves the path String itself rather converting it to a byte array and saving that. > Recent files in PDF reader > -------------------------- > > Key: PDFBOX-2748 > URL: https://issues.apache.org/jira/browse/PDFBOX-2748 > Project: PDFBox > Issue Type: Improvement > Components: Swing GUI > Affects Versions: 2.0.0 > Reporter: khyrul bashar > Priority: Minor > Labels: patch > Fix For: 2.0.0 > > Attachments: recentfiles_pdfreader.diff > > > A recently opened file list containing menu in pdf reader will be a nice > feature in PDF reader. > I've made a patch for this. A new package under org.apache.pdfbox.tools is > created named util which contains the class RecentFiles so that this can be > used in feature improvement of other GUI tools PDFBox provides. > In RecentFiles class, file path string is saved in preference by converting > and breaking them into byte array. To do That, I've followed this > [post|http://www.ibm.com/developerworks/library/j-prefapi/] . > I'm saying this to help PDFBox to make an informed decision concerning > licences issues if there is any. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org