1 19 20 package org.netbeans.spi.editor.errorstripe; 21 22 import java.beans.PropertyChangeListener ; 23 import java.beans.PropertyChangeSupport ; 24 import org.netbeans.modules.editor.errorstripe.apimodule.SPIAccessor; 25 26 32 public abstract class UpToDateStatusProvider { 33 34 static { 35 SPIAccessor.DEFAULT = new SPIAccessorImpl(); 36 } 37 38 40 public static final String PROP_UP_TO_DATE = "upToDate"; 42 private PropertyChangeSupport pcs; 43 44 45 public UpToDateStatusProvider() { 46 pcs = new PropertyChangeSupport (this); 47 } 48 49 62 public abstract UpToDateStatus getUpToDate(); 63 64 68 final void addPropertyChangeListener(PropertyChangeListener l) { 69 pcs.addPropertyChangeListener(l); 70 } 71 72 76 final void removePropertyChangeListener(PropertyChangeListener l) { 77 pcs.removePropertyChangeListener(l); 78 } 79 80 88 protected final void firePropertyChange(String name, Object old, Object nue) { 89 pcs.firePropertyChange(name, old, nue); 90 } 91 92 } 93 | Popular Tags |