Bug 125323 Add isAncestorOf method to ResourceMapping
It would be helpful to have an isAncestorOf method on ResourceMapping. Ideally, it would be abstract but for now, it would need a defautl implementation. I will attah a patch.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/model/CompositeResourceMapping.java
/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.ui.internal.ide.model;
import java.util.*;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.mapping.*;
import org.eclipse.core.runtime.*;
/**
 * A resource mapping that contains child mappings which are used to obtain the traversals
 */
public class CompositeResourceMapping extends ResourceMapping {
    private final Object modelObject;