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
/**
	 * @return
	 */
	abstract public IPath getPath();
	/**
	 * @return
	 */
	abstract public IProject getProject();
	/**
	 * @return
	 */