1 19 20 package org.netbeans.modules.editor.errorstripe; 21 22 import java.util.List ; 23 import org.netbeans.modules.editor.errorstripe.privatespi.MarkProvider; 24 import org.netbeans.spi.editor.errorstripe.UpToDateStatus; 25 26 30 public class TestMarkProvider extends MarkProvider { 31 32 private List marks; 33 private UpToDateStatus upToDate; 34 35 36 public TestMarkProvider(List marks, UpToDateStatus upToDate) { 37 this.marks = marks; 38 this.upToDate = upToDate; 39 } 40 41 public UpToDateStatus getUpToDate() { 42 return upToDate; 43 } 44 45 public List getMarks() { 46 return marks; 47 } 48 49 public void setMarks(List marks) { 50 setMarks(marks, true, true); 51 } 52 53 public void setMarks(List marks, boolean fireOld, boolean fireNue) { 54 List old = this.marks; 55 56 this.marks = marks; 57 58 firePropertyChange(PROP_MARKS, fireOld ? old : null, fireNue ? this.marks : null); 59 } 60 61 } 69 | Popular Tags |