Search in sources :

Example 1 with ECFPlugin

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());
}
Also used : ECFPlugin(org.eclipse.ecf.internal.core.ECFPlugin) IAdapterManager(org.eclipse.core.runtime.IAdapterManager)

Aggregations

IAdapterManager (org.eclipse.core.runtime.IAdapterManager)1 ECFPlugin (org.eclipse.ecf.internal.core.ECFPlugin)1