Package ca.phon.util

Class RecentFiles

java.lang.Object
ca.phon.util.RecentFiles
All Implemented Interfaces:
Iterable<File>
Direct Known Subclasses:
OpenFileHistory, RecentProjects, WorkspaceHistory

public class RecentFiles extends Object implements Iterable<File>
  • Constructor Details

    • RecentFiles

      public RecentFiles()
    • RecentFiles

      public RecentFiles(String propertyKey)
    • RecentFiles

      public RecentFiles(String propertyKey, int maxFiles)
    • RecentFiles

      public RecentFiles(String propertyKey, int maxFiles, boolean removeDeadEntries)
  • Method Details

    • setMaxFiles

      public void setMaxFiles(int maxFiles)
    • getMaxFiles

      public int getMaxFiles()
    • getFileCount

      public int getFileCount()
    • getFileAt

      public File getFileAt(int idx)
    • 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

      public void setPropertyKey(String key)
    • getPropertyKey

      public String getPropertyKey()
    • saveHistory

      public void saveHistory()
    • addToHistory

      public void addToHistory(File workspaceFolder)
    • clearHistory

      public void clearHistory()
    • size

      public int size()
    • iterator

      public Iterator<File> iterator()
      Specified by:
      iterator in interface Iterable<File>