That is we *must* resolve the following:
Required adaptions:
Recommendated adaptions:
Here is an implementation example (for something that can adapt to ImageDescriptor and FeatureSource):
public <T> boolean canResolve( Class<T> adaptee ) { return adaptee != null && (adaptee.isAssignableFrom(ImageDescriptor.class) || adaptee.isAssignableFrom(FeatureSource.class) || super.canResolve(adaptee)); }
Restrictions on implementations:
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
That is we *must* resolve the following:
Here is an implementation example (for something that can adapt to DataStore):
public <T> boolean canResolve( Class<T> adaptee ) { return adaptee != null && (adaptee.isAssignableFrom(DataStore.class) || super.canResolve(adaptee)); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|