Class MRUFileList
java.lang.Object
org.apache.log4j.chainsaw.prefs.MRUFileList
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static EventListenerListprivate static MRUFileListprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddChangeListener(ChangeListener listener) private static voidReturns an unmodifiable List of the MRU opened file list within Chainsawstatic voidloadLog4jMRUListFromReader(Reader reader) static voidstatic MRUFileListlog4jMRU()voidCall 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(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
-