blob: 2610d6a09af73f9e078416c9fbf312a1cacfcda0 [file] [log] [blame]
package org.eclipse.ui.internal;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
/**
* Objects of classes that implement this interface
* can be registered for certain object type
* in the IObjectContributorManager. Unlike with extenders,
* all the matching contributors will be processed
* in a sequence.
* <p>By implementing 'isApplicableTo' method,
* a contributor can tell the manager to skip it
* if the object is of the desired type, but its
* other properties do not match additional
* requirements imposed by the contributor.
*
* @see IObjectContributorManager
*/
public interface IObjectContributor {
/**
* Returns true if this contributor should be considered
* for the given object.
*/
public boolean isApplicableTo(Object object);
/**
* Return whether or not the receiver can adapt to IResource.
*/
public boolean canAdapt();
}