throw new NullPointerException("No adaptor specified"); //$NON-NLS-1$
}
if (adaptee.isInstance(factory)) {
return adaptee.cast(factory);
}
IResolveManager rm = CatalogPlugin.getDefault().getResolveManager();
if (rm.canResolve(this, adaptee)) {
return rm.resolve(this, adaptee, monitor);
}
return null; // no adapter found (check to see if ResolveAdapter is registered?)
}