question: public void addNotify ( ) { super . addNotify ( ) ; textArea . addCaretListener ( listener ) ; textArea . addPropertyChangeListener ( RSyntaxTextArea . PARSER_NOTICES_PROPERTY , listener ) ; textArea . addPropertyChangeListener ( RSyntaxTextArea . MARK_OCCURRENCES_PROPERTY , listener ) ; textArea . addPropertyChangeListener ( RSyntaxTextArea . MARKED_OCCURRENCES_CHANGED_PROPERTY , listener ) ; refreshMarkers ( ) ; }
target:  Overridden so we only start listening for parser notices when this component (and presumably the text area) are visible.