1 19 20 package org.netbeans.modules.versioning.system.cvss.ui.actions.annotate; 21 import java.util.Collections ; 22 import java.util.List ; 23 import javax.swing.event.CaretEvent ; 24 import javax.swing.event.CaretListener ; 25 import javax.swing.text.Document ; 26 import javax.swing.text.JTextComponent ; 27 import javax.swing.text.StyledDocument ; 28 import org.netbeans.modules.editor.errorstripe.privatespi.Mark; 29 import org.netbeans.modules.editor.errorstripe.privatespi.MarkProvider; 30 import org.openide.text.NbDocument; 31 32 33 38 final class AnnotationMarkProvider extends MarkProvider { 39 40 private List marks = Collections.EMPTY_LIST; 41 42 public void setMarks(List marks) { 43 List old = this.marks; 44 this.marks = marks; 45 firePropertyChange(PROP_MARKS, old, marks); 46 } 47 48 public synchronized List getMarks() { 49 return marks; 50 } 51 } 52 | Popular Tags |