Package org.apache.log4j.chainsaw.prefs
Class MRUFileList
java.lang.Object
org.apache.log4j.chainsaw.prefs.MRUFileList
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static EventListenerList
private static MRUFileList
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addChangeListener
(ChangeListener listener) private static void
Returns an unmodifiable List of the MRU opened file list within Chainsawstatic void
loadLog4jMRUListFromReader
(Reader reader) static void
static MRUFileList
log4jMRU()
void
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 void
removeChangeListener
(ChangeListener listener)
-
Field Details
-
log4jList
-
DEFAULT_MRU_SIZE
private static final int DEFAULT_MRU_SIZE- See Also:
-
fileList
-
size
private int size -
listeners
-
-
Constructor Details
-
MRUFileList
private MRUFileList()
-
-
Method Details
-
addChangeListener
-
removeChangeListener
-
opened
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
-
-
fireChangeEvent
private static void fireChangeEvent() -
getMRUList
Returns an unmodifiable List of the MRU opened file list within Chainsaw- Returns:
-
log4jMRU
-
loadLog4jMRUListFromXML
-
loadLog4jMRUListFromReader
-