|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.uni_paderborn.fujaba.basic.FileHistory
FileHistory provides a recently opened file list and a mechanism to update special Actions (OpenRecentProjectAction) to open these files. These actions can be used to create a recent file list in menus or in Toolbars. To do so, create an Action entry and a corresponding Item that uses this entry like this:
The Method updateAction updates these Actions identified by their name "fileHistory#" with index # to open the files in the recently opened file list. Index starts with 0.fileHistory0 Load recent project de/uni_paderborn/fujaba/app/images/openRecent.gif
Constructor Summary | |
FileHistory()
Constructor for class FileHistory |
Method Summary | |
boolean |
addToHistory(java.io.File file)
Adds a file to the file History |
java.io.File |
firstOfHistory()
No comment provided by developer, please add a comment to improve documentation. |
static FileHistory |
get()
Get singleton of class FileHistory. |
boolean |
isInHistory(java.io.File file)
Check if the provided file is in history |
void |
loadHistoryFromProperties()
Loads the file history from property file. |
void |
removeNotExistingFiles()
Checks all files in history if they exist and removes non existing files from the history. |
void |
saveHistoryToProperties()
Saves the file history to properties. |
void |
updateActions()
Updates all fileHistory# Actions |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileHistory()
Method Detail |
public static FileHistory get()
public boolean addToHistory(java.io.File file)
file
- File to add
public boolean isInHistory(java.io.File file)
file
- File to check
public java.io.File firstOfHistory()
public void loadHistoryFromProperties()
public void saveHistoryToProperties()
public void updateActions()
public void removeNotExistingFiles()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |