Bug 84437 [Contributions] Patch for adding ResourceMapping support to object contributions
I have modifed the UI to support object contributions on resource mappings. I will attach the patches for workbench, ide and tests. It would be nice if we could have these in for the next integration build so we could also release the changes for CVS.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/DefaultContributorResourceAdapter.java
IContributorResourceAdapter {
    private static IContributorResourceAdapter singleton;
    /**
     * Constructor for DefaultContributorResourceAdapter.
     */
    public DefaultContributorResourceAdapter() {
        super();
    }
    /**
     * Return the default instance used for TaskList adapting.
     */
    public static IContributorResourceAdapter getDefault() {
        if (singleton == null)
            singleton = new DefaultContributorResourceAdapter();
        return singleton;
    }
    /*
     * @see IContributorResourceAdapter#getAdaptedResource(IAdaptable)
     */
    public IResource getAdaptedResource(IAdaptable adaptable) {
        return (IResource) adaptable.getAdapter(IResource.class);
    }
}