use of org.eclipse.ecf.internal.core.ECFPlugin in project ecf by eclipse.
the class AbstractContainer method getAdapter.
public Object getAdapter(Class serviceType) {
if (serviceType == null)
return null;
if (serviceType.isInstance(this)) {
return this;
}
ECFPlugin plugin = ECFPlugin.getDefault();
if (plugin == null)
return null;
IAdapterManager adapterManager = plugin.getAdapterManager();
return (adapterManager == null) ? null : adapterManager.loadAdapter(this, serviceType.getName());
}
Aggregations