Class RecentFilesStore
java.lang.Object
megamek.client.ui.dialogs.advancedsearch.RecentFilesStore
This class implements a simple, not thread-safe recent-files-used storage. It is stored in a json file which must
be given as a constructor parameter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds or refreshes the given file as most-recently-used.
-
Constructor Details
-
RecentFilesStore
- Throws:
IOException
-
-
Method Details
-
touch
Adds or refreshes the given file as most-recently-used.- Parameters:
file- The "touched" file- Throws:
IOException
-
getRecentFiles
- Returns:
- The list of most recent files with the most recent first in the list.
-