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
abstract public int getType();
	/**
	 * @return
	 */
	abstract public IFileInfoMatcherDescription getFileInfoMatcherDescription();
	
	/**
	 * @param iResourceFilterDescription
	 * @return a UIResourceFilterDescription
	 */
	public static UIResourceFilterDescription wrap(
			final IResourceFilterDescription iResourceFilterDescription) {
		return new UIResourceFilterDescription() {
			public IFileInfoMatcherDescription getFileInfoMatcherDescription() {
				return iResourceFilterDescription.getFileInfoMatcherDescription();
			}
			public IPath getPath() {
				return iResourceFilterDescription.getPath();
			}
	
			public IProject getProject() {
				return iResourceFilterDescription.getProject();
			}
	
			public int getType() {
				return iResourceFilterDescription.getType();
			}
		};
	}
}