Package org.apache.log4j.chainsaw.prefs
Class MRUFileListPreferenceSaver
- java.lang.Object
-
- org.apache.log4j.chainsaw.prefs.MRUFileListPreferenceSaver
-
- All Implemented Interfaces:
java.util.EventListener
,SettingsListener
public class MRUFileListPreferenceSaver extends java.lang.Object implements SettingsListener
Loads/Saves the MRU lists from preferences
-
-
Field Summary
Fields Modifier and Type Field Description private static MRUFileListPreferenceSaver
instance
-
Constructor Summary
Constructors Modifier Constructor Description private
MRUFileListPreferenceSaver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MRUFileListPreferenceSaver
getInstance()
private java.io.File
getMRULocation(java.io.File dir)
void
loadSettings(LoadSettingsEvent event)
When a request to load Settings has been requested, this method will be invoked by the SettingsManager.void
saveSettings(SaveSettingsEvent event)
-
-
-
Field Detail
-
instance
private static final MRUFileListPreferenceSaver instance
-
-
Method Detail
-
getInstance
public static final MRUFileListPreferenceSaver getInstance()
-
loadSettings
public void loadSettings(LoadSettingsEvent event)
Description copied from interface:SettingsListener
When a request to load Settings has been requested, this method will be invoked by the SettingsManager. The implementing component can query the event for settings, and modify it's internal state based on these settings.- Specified by:
loadSettings
in interfaceSettingsListener
-
saveSettings
public void saveSettings(SaveSettingsEvent event)
- Specified by:
saveSettings
in interfaceSettingsListener
-
getMRULocation
private java.io.File getMRULocation(java.io.File dir)
-
-