package de.cismet.beanmill.filter;
import com.traxel.lumbermill.event.Event;
import org.apache.log4j.Logger;
private static final transient Logger LOG = Logger.getLogger(
ActiveSelectionFilter.class);
private String fullPath = "";
private int from = -1;
private int to = -1;
super();
active = false;
}
return from;
}
return fullPath;
}
return to;
}
public void setSelection(
final String fullPath,
final int from,
final int to) {
this.from = from;
this.to = to;
this.fullPath = fullPath;
filterNotifier.fireFilterChange();
}
@Override
return "ActiveSelectionFilter";
}
@Override
try {
final int linenumber = new Integer(e.getLocation().split("java:")[1].split("\\)")[0]);
if ((from == to) && (from == -1)) {
return e.getSource().equals(fullPath);
} else {
return e.getSource().equals(fullPath)
&& (linenumber >= from)
&& (linenumber <= to);
}
} catch (final Exception ex) {
LOG.warn("could not check for visibility using event: " + e, ex);
return false;
}
}
}