Required adaptions will be listed in Abstract Classes under the resolve() method.
Restrictions on implementations:
- May not Block
- *MUST NOT* throw any exceptions (be sure to check for null!)
- Must delegate to ResolveManger - to recognize adapters contributed by others
When defining a new AbstractClass you are also asked to please list the required adaptations in your javadocs.
The following code example shows intended practice:
public boolean canResolve( Class adaptee ){ return adaptee != null && ( adaptee.isAssignableFrom(TYPE.class) || CatalogPlugin.getDefault().getResolveManager().canResolve(this, adaptee) ); }
@see IResolve#resolve(Class, IProgressMonitor);
@return true if a resolution for adaptee is avaialble