Package org.apache.log4j.chainsaw.prefs
Class MRUFileList
- java.lang.Object
-
- org.apache.log4j.chainsaw.prefs.MRUFileList
-
public class MRUFileList extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidaddChangeListener(javax.swing.event.ChangeListener listener)ListgetMRUList()Returns an unmodifiable List of the MRU opened file list within Chainsawstatic voidloadLog4jMRUListFromReader(Reader reader)static voidloadLog4jMRUListFromXML(String xml)static MRUFileListlog4jMRU()voidopened(URL url)Call this method when something opens a log file, this method adds the URL to the list of known URL's, automatically rolling the list to ensure the list maintains the size propertystatic voidremoveChangeListener(javax.swing.event.ChangeListener listener)
-
-
-
Method Detail
-
addChangeListener
public static void addChangeListener(javax.swing.event.ChangeListener listener)
-
removeChangeListener
public static void removeChangeListener(javax.swing.event.ChangeListener listener)
-
opened
public void opened(URL url)
Call this method when something opens a log file, this method adds the URL to the list of known URL's, automatically rolling the list to ensure the list maintains the size property- Parameters:
url-
-
getMRUList
public List getMRUList()
Returns an unmodifiable List of the MRU opened file list within Chainsaw- Returns:
-
log4jMRU
public static MRUFileList log4jMRU()
-
loadLog4jMRUListFromXML
public static void loadLog4jMRUListFromXML(String xml)
-
loadLog4jMRUListFromReader
public static void loadLog4jMRUListFromReader(Reader reader)
-
-