Class RecentFiles
java.lang.Object
ca.phon.util.RecentFiles
- Direct Known Subclasses:
OpenFileHistory,RecentProjects,WorkspaceHistory
-
Constructor Summary
ConstructorsConstructorDescriptionRecentFiles(String propertyKey) RecentFiles(String propertyKey, int maxFiles) RecentFiles(String propertyKey, int maxFiles, boolean removeDeadEntries) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToHistory(File workspaceFolder) voidgetFileAt(int idx) intintbooleaniterator()voidRemove any files which cannot be located from the history.voidvoidvoidsetMaxFiles(int maxFiles) voidsetPropertyKey(String key) voidsetRemoveDeadEntries(boolean removeDeadEntries) intsize()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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() -
removeFromHistory
-
size
public int size() -
iterator
-