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 MRUFileListPreferenceSaverinstance
-
Constructor Summary
Constructors Modifier Constructor Description privateMRUFileListPreferenceSaver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MRUFileListPreferenceSavergetInstance()private java.io.FilegetMRULocation(java.io.File dir)voidloadSettings(LoadSettingsEvent event)When a request to load Settings has been requested, this method will be invoked by the SettingsManager.voidsaveSettings(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:SettingsListenerWhen 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:
loadSettingsin interfaceSettingsListener
-
saveSettings
public void saveSettings(SaveSettingsEvent event)
- Specified by:
saveSettingsin interfaceSettingsListener
-
getMRULocation
private java.io.File getMRULocation(java.io.File dir)
-
-