1 19 20 package org.netbeans.modules.tasklist.client; 21 22 import javax.swing.event.EventListenerList ; 23 import org.openide.filesystems.FileObject; 24 import org.openide.util.Lookup; 25 26 import java.util.List ; 27 import javax.swing.event.ChangeListener ; 28 29 86 abstract public class SuggestionManager { 87 protected EventListenerList listeners = new EventListenerList (); 88 89 90 protected SuggestionManager() { 91 } 92 93 131 abstract public SuggestionAgent createSuggestion( 132 FileObject fo, String type, String summary, SuggestionPerformer action, 133 Object seed); 134 135 148 abstract public boolean isEnabled(String id); 149 150 173 abstract public boolean isObserved(String id); 174 175 210 abstract public void register(String type, List add, List remove); 211 212 216 public static SuggestionManager getDefault() { 217 return (SuggestionManager)Lookup.getDefault(). 218 lookup(SuggestionManager.class); 219 } 220 } 221 | Popular Tags |