Bug 296473 [Filters] Replace #getProject and #getPath with #getResource in IResourceFilterDescription
I think that just #getResource method is fine. Javadoc has to state that only IFolder and IProject objects can be returned.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/UIResourceFilterDescription.java
/*******************************************************************************
 * Copyright (c) 2009 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:
 *     Serge Beauchamp (Freescale Semiconductor)- initial API and implementation
 ******************************************************************************/
package org.eclipse.ui.internal.ide.dialogs;
import org.eclipse.core.resources.IFileInfoMatcherDescription;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResourceFilterDescription;
import org.eclipse.core.runtime.IPath;
/**
 * @since 3.6
 *
 */
public abstract class UIResourceFilterDescription {