this.logTreeModel = logTreeModel;
this.preferenceModel = preferenceModel;
setLayout(new BorderLayout());
ruleDelegate = new AbstractRule() {
public boolean evaluate(LoggingEvent e)
{
String currentlySelectedLoggerName = getCurrentlySelectedLoggerName();
if (currentlySelectedLoggerName == null) {
//if there is no selected logger, all events should pass
return true;
}
boolean isHidden = getHiddenSet().contains(e.getLoggerName());
boolean result = (e.getLoggerName() != null) && (!isHidden);
if (result && isFocusOnSelected())
{
result = result && (e.getLoggerName() != null && (e.getLoggerName().startsWith(currentlySelectedLoggerName+".") || e.getLoggerName().endsWith(currentlySelectedLoggerName))) ;
}
return result;
}
};
colorRuleDelegate =
new AbstractRule()
{
public boolean evaluate(LoggingEvent e)
{
boolean isHidden = getHiddenSet().contains(e.getLoggerName());
String currentlySelectedLoggerName = getCurrentlySelectedLoggerName();