Package ca.phon.util
Class RecentFiles
java.lang.Object
ca.phon.util.RecentFiles
- Direct Known Subclasses:
OpenFileHistory
,RecentProjects
,WorkspaceHistory
-
Constructor Summary
ConstructorDescriptionRecentFiles
(String propertyKey) RecentFiles
(String propertyKey, int maxFiles) RecentFiles
(String propertyKey, int maxFiles, boolean removeDeadEntries) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToHistory
(File workspaceFolder) void
getFileAt
(int idx) int
int
boolean
iterator()
void
Remove any files which cannot be located from the history.void
void
setMaxFiles
(int maxFiles) void
setPropertyKey
(String key) void
setRemoveDeadEntries
(boolean removeDeadEntries) int
size()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
RecentFiles
public RecentFiles() -
RecentFiles
-
RecentFiles
-
RecentFiles
-
-
Method Details
-
setMaxFiles
public void setMaxFiles(int maxFiles) -
getMaxFiles
public int getMaxFiles() -
getFileCount
public int getFileCount() -
getFileAt
-
isRemoveDeadEntries
public boolean isRemoveDeadEntries() -
setRemoveDeadEntries
public void setRemoveDeadEntries(boolean removeDeadEntries) -
purgeFilesNotFound
public void purgeFilesNotFound()Remove any files which cannot be located from the history. -
setPropertyKey
-
getPropertyKey
-
saveHistory
public void saveHistory() -
addToHistory
-
clearHistory
public void clearHistory() -
size
public int size() -
iterator
-