1 11 package org.eclipse.core.runtime; 12 13 63 public interface IAdapterManager { 64 65 70 public static final int NONE = 0; 71 72 77 public static final int NOT_LOADED = 1; 78 79 83 public static final int LOADED = 2; 84 85 102 public String [] computeAdapterTypes(Class adaptableClass); 103 104 122 public Class [] computeClassOrder(Class clazz); 123 124 139 public Object getAdapter(Object adaptable, Class adapterType); 140 141 159 public Object getAdapter(Object adaptable, String adapterTypeName); 160 161 180 public boolean hasAdapter(Object adaptable, String adapterTypeName); 181 182 198 public int queryAdapter(Object adaptable, String adapterTypeName); 199 200 219 public Object loadAdapter(Object adaptable, String adapterTypeName); 220 221 236 public void registerAdapters(IAdapterFactory factory, Class adaptable); 237 238 247 public void unregisterAdapters(IAdapterFactory factory); 248 249 259 public void unregisterAdapters(IAdapterFactory factory, Class adaptable); 260 } 261 | Popular Tags |