Bug 126654 [EFS] Eclipse 3.2M4's SelectionListenerAction's computeResources() method does not take ResourceMappings into consideration
eclipse: 3.2M4 plugin: org.eclipse.ui.ide class: org.eclipse.ui.actions.SelectionListenerAction method: computeResources()
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/SelectionListenerAction.java
*   otherwise
     * @see IResource
     */
    protected boolean resourceIsType(IResource resource, int resourceMask) {
        return (resource.getType() & resourceMask) != 0;
    }
    /**
     * Returns whether the current selection consists entirely of resources whose
     * types are among those in the given resource type mask.
     * 
     * @param resourceMask a bitwise OR of resource types: 
     *   <code>IResource</code>.{<code>FILE</code>, <code>FOLDER</code>,
     *   <code>PROJECT</code>, <code>ROOT</code>}
     * @return <code>true</code> if all resources in the current selection are of the
     *   specified types or if the current selection is empty, and <code>false</code> if some
     *   elements are resources of a different type or not resources
     * @see IResource
     */
    protected boolean selectionIsOfType(int resourceMask) {
        if (getSelectedNonResources().size() > 0)
            return false;
        for (Iterator e = getSelectedResources().iterator(); e.hasNext();) {
            IResource next = (IResource) e.next();
            if (!resourceIsType(next, resourceMask))
                return false;
        }
        return true;
    }
}