1 19 20 package org.netbeans.lib.editor.hyperlink; 21 22 import java.util.List ; 23 import org.openide.util.Lookup; 24 25 42 public abstract class HyperlinkProviderManager { 43 44 private static HyperlinkProviderManager defaultManager; 45 46 52 public static synchronized HyperlinkProviderManager getDefault() { 53 if (defaultManager == null) { 54 defaultManager = createDefault(); 55 } 56 return defaultManager; 57 } 58 59 private static HyperlinkProviderManager createDefault() { 60 HyperlinkProviderManager mgr = (HyperlinkProviderManager)Lookup.getDefault(). 61 lookup(HyperlinkProviderManager.class); 62 63 if (mgr == null) { mgr = new DefaultHyperlinkProviderManager(); 65 } 66 return mgr; 67 } 68 69 75 public abstract List getHyperlinkProviders(String mimeType); 76 77 } 78 | Popular Tags |