1 19 20 package org.netbeans.modules.retouche.hints.spi; 21 22 import java.util.List ; 23 import java.util.Set ; 24 import org.netbeans.api.retouche.source.CompilationInfo; 25 import org.netbeans.spi.editor.hints.Fix; 26 27 33 public interface ErrorRule<T> extends Rule { 35 37 public Set <String > getCodes(); 38 39 41 public List <Fix> run(CompilationInfo compilationInfo, String diagnosticKey, int offset, Data<T> data); 42 43 public void cancel(); 44 45 public static final class Data<T> { 46 private T o; 47 public synchronized T getData() { 48 return o; 49 } 50 51 public synchronized void setData(T o) { 52 this.o = o; 53 } 54 } 55 } 56 | Popular Tags |