1 19 20 package org.netbeans.modules.editor.hints; 21 22 import java.beans.PropertyChangeListener ; 23 import java.util.Collections ; 24 import java.util.List ; 25 import org.netbeans.spi.editor.hints.Fix; 26 import org.netbeans.spi.editor.hints.LazyFixList; 27 28 32 public class StaticFixList implements LazyFixList { 33 34 private List <Fix> fixes; 35 36 public StaticFixList() { 37 this.fixes = Collections.<Fix>emptyList(); 38 } 39 40 public StaticFixList(List <Fix> fixes) { 41 this.fixes = fixes; 42 } 43 44 public boolean probablyContainsFixes() { 45 return !fixes.isEmpty(); 46 } 47 48 public List <Fix> getFixes() { 49 return fixes; 50 } 51 52 public boolean isComputed() { 53 return true; 54 } 55 56 public void addPropertyChangeListener(PropertyChangeListener l) { 57 } 58 59 public void removePropertyChangeListener(PropertyChangeListener l) { 60 } 61 62 } 63 | Popular Tags |