This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
public Highlighting(HighlightingManager manager, JTextComponent pane) {
this.manager = manager;
this.pane = pane;
this.paneFilter = new RegExpFilter(pane.getClientProperty(PROP_HL_INCLUDES), pane.getClientProperty(PROP_HL_EXCLUDES));
updatePaneFilter();
this.pane.addPropertyChangeListener(WeakListeners.propertyChange(this, pane));
rebuildAll();
}
private void updatePaneFilter() {
paneFilter = new RegExpFilter(pane.getClientProperty(PROP_HL_INCLUDES), pane.getClientProperty(PROP_HL_EXCLUDES));
synchronized HighlightsContainer bottomHighlights() {
return bottomHighlights;
public @Override void propertyChange(PropertyChangeEvent evt) {
if (evt.getPropertyName() == null || PROP_DOCUMENT.equals(evt.getPropertyName())) {
Document doc = pane.getDocument();
if (doc != null) {
doc.render(new Runnable() {
if (PROP_HL_INCLUDES.equals(evt.getPropertyName()) || PROP_HL_EXCLUDES.equals(evt.getPropertyName())) {
rebuildAllLayers();